public class BroomPartBase extends java.lang.Object implements IBroomPart
IBroomPart.BroomPartType, IBroomPart.IBroomPartTypeModelOffsetter| Constructor and Description |
|---|
BroomPartBase(net.minecraft.util.ResourceLocation id,
IBroomPart.BroomPartType type,
float length) |
BroomPartBase(net.minecraft.util.ResourceLocation id,
IBroomPart.BroomPartType type,
float length,
net.minecraft.item.EnumRarity rarity,
boolean effect) |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.util.ResourceLocation |
getId() |
int |
getModelColor() |
java.lang.String |
getTooltipLine(java.lang.String prefix)
The line to be added to tooltips.
|
java.lang.String |
getTranslationKey() |
protected void |
registerModelResourceLocation() |
boolean |
shouldAutoRegisterMissingItem() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLength, getRarity, getType, isEffectpublic BroomPartBase(net.minecraft.util.ResourceLocation id,
IBroomPart.BroomPartType type,
float length)
public BroomPartBase(net.minecraft.util.ResourceLocation id,
IBroomPart.BroomPartType type,
float length,
net.minecraft.item.EnumRarity rarity,
boolean effect)
public net.minecraft.util.ResourceLocation getId()
getId in interface IBroomPartprotected void registerModelResourceLocation()
public java.lang.String getTranslationKey()
getTranslationKey in interface IBroomPart@Nullable public java.lang.String getTooltipLine(java.lang.String prefix)
IBroomPartgetTooltipLine in interface IBroomPartprefix - A line prefixpublic boolean shouldAutoRegisterMissingItem()
shouldAutoRegisterMissingItem in interface IBroomPartpublic int getModelColor()
getModelColor in interface IBroomPart