Package org.cyclops.evilcraft.core.broom
Class BroomPartModifier
java.lang.Object
org.cyclops.evilcraft.core.broom.BroomPartBase
org.cyclops.evilcraft.core.broom.BroomPartModifier
- All Implemented Interfaces:
IBroomPart
A broom part for a modifier
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cyclops.evilcraft.api.broom.IBroomPart
IBroomPart.BroomPartType, IBroomPart.IBroomPartTypeModelOffsetter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintnet.minecraft.network.chat.ComponentgetTooltipLine(String prefix) The line to be added to tooltips.protected voidbooleanMethods inherited from class org.cyclops.evilcraft.core.broom.BroomPartBase
getId, getTranslationKeyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cyclops.evilcraft.api.broom.IBroomPart
getLength, getRarity, getType, isEffect
-
Constructor Details
-
BroomPartModifier
-
-
Method Details
-
registerModelResourceLocation
protected void registerModelResourceLocation()- Overrides:
registerModelResourceLocationin classBroomPartBase
-
getTooltipLine
Description copied from interface:IBroomPartThe line to be added to tooltips.- Specified by:
getTooltipLinein interfaceIBroomPart- Overrides:
getTooltipLinein classBroomPartBase- Parameters:
prefix- A line prefix- Returns:
- The line, null if no line should be shown
-
shouldAutoRegisterMissingItem
public boolean shouldAutoRegisterMissingItem()- Specified by:
shouldAutoRegisterMissingItemin interfaceIBroomPart- Overrides:
shouldAutoRegisterMissingItemin classBroomPartBase- Returns:
- If an item for this part should be automatically registered if none has been provided.
-
getModelColor
public int getModelColor()- Specified by:
getModelColorin interfaceIBroomPart- Overrides:
getModelColorin classBroomPartBase- Returns:
- The tint of this part's model.
-