Package org.cyclops.evilcraft.api.broom
Interface IBroomPart
- All Known Implementing Classes:
BroomPartBase,BroomPartCapGem,BroomPartCapMetal,BroomPartModifier
public interface IBroomPart
A broom part.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classAll types of broom parts.static interface -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.resources.ResourceLocationgetId()floatintnet.minecraft.world.item.Raritynet.minecraft.network.chat.ComponentgetTooltipLine(String prefix) The line to be added to tooltips.getType()booleanisEffect()boolean
-
Method Details
-
getType
IBroomPart.BroomPartType getType()- Returns:
- The part type.
-
getId
net.minecraft.resources.ResourceLocation getId()- Returns:
- The unique part identifier.
-
getTranslationKey
String getTranslationKey()- Returns:
- The unlocalized name.
-
getTooltipLine
The line to be added to tooltips.- Parameters:
prefix- A line prefix- Returns:
- The line, null if no line should be shown
-
getLength
float getLength()- Returns:
- The length of this part (1.0F = 1 block)
-
getRarity
net.minecraft.world.item.Rarity getRarity()- Returns:
- The rarity.
-
isEffect
boolean isEffect()- Returns:
- If the item has an effect overlay.
-
getModelColor
int getModelColor()- Returns:
- The tint of this part's model.
-
shouldAutoRegisterMissingItem
boolean shouldAutoRegisterMissingItem()- Returns:
- If an item for this part should be automatically registered if none has been provided.
-