public class ItemButterflyGE extends ItemGE implements ISpriteRegister, IColoredItem
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NBT_AGE |
| Constructor and Description |
|---|
ItemButterflyGE(EnumFlutterType type) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCreativeItems(net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> subItems,
boolean hideSecrets) |
static int |
getAge(net.minecraft.item.ItemStack cocoon) |
int |
getColorFromItemstack(net.minecraft.item.ItemStack stack,
int tintIndex) |
IButterfly |
getIndividual(net.minecraft.item.ItemStack itemstack) |
java.lang.String |
getItemStackDisplayName(net.minecraft.item.ItemStack itemstack) |
protected IAlleleSpecies |
getSpecies(net.minecraft.item.ItemStack itemStack) |
void |
getSubItems(net.minecraft.creativetab.CreativeTabs tab,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> subItems) |
boolean |
onEntityItemUpdate(net.minecraft.entity.item.EntityItem entityItem) |
net.minecraft.util.EnumActionResult |
onItemUse(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumHand hand,
net.minecraft.util.EnumFacing facing,
float hitX,
float hitY,
float hitZ) |
void |
registerModel(net.minecraft.item.Item item,
IModelManager manager) |
void |
registerSprites(ITextureManager manager)
Register butterfly item sprites
|
static void |
setAge(net.minecraft.item.ItemStack cocoon,
int age) |
addInformation, getCreatorModId, getShareTag, hasEffect, isDamageable, isRepairablegetItemStack, getItemStack, getWildcardaddPropertyOverride, canApplyAtEnchantingTable, canContinueUsing, canDestroyBlockInCreative, canDisableShield, canHarvestBlock, canHarvestBlock, canItemEditBlocks, createEntity, doesSneakBypassUse, getAnimationParameters, getArmorModel, getArmorTexture, getAttributeModifiers, getByNameOrId, getContainerItem, getContainerItem, getCreativeTab, getCreativeTabs, getDamage, getDefaultInstance, getDestroySpeed, getDurabilityForDisplay, getEntityLifespan, getEquipmentSlot, getFontRenderer, getForgeRarity, getHarvestLevel, getHasSubtypes, getHighlightTip, getHorseArmorTexture, getHorseArmorType, getIdFromItem, getIsRepairable, getItemAttributeModifiers, getItemBurnTime, getItemById, getItemEnchantability, getItemEnchantability, getItemFromBlock, getItemStackLimit, getItemStackLimit, getItemUseAction, getMaxDamage, getMaxDamage, getMaxItemUseDuration, getMetadata, getMetadata, getNBTShareTag, getPropertyGetter, getRarity, getRGBDurabilityForDisplay, getSmeltingExperience, getTileEntityItemStackRenderer, getToolClasses, getTranslationKey, getTranslationKey, getUnlocalizedNameInefficiently, getXpRepairRatio, hasContainerItem, hasContainerItem, hasCustomEntity, hasCustomProperties, hitEntity, initCapabilities, isBeaconPayment, isBookEnchantable, isDamaged, isEnchantable, isFull3D, isInCreativeTab, isMap, isShield, isValidArmor, itemInteractionForEntity, onArmorTick, onBlockDestroyed, onBlockStartBreak, onCreated, onDroppedByPlayer, onEntitySwing, onHorseArmorTick, onItemRightClick, onItemUseFinish, onItemUseFirst, onLeftClickEntity, onPlayerStoppedUsing, onUpdate, onUsingTick, rayTrace, readNBTShareTag, registerItemBlock, registerItems, renderHelmetOverlay, setContainerItem, setCreativeTab, setDamage, setFull3D, setHarvestLevel, setHasSubtypes, setMaxDamage, setMaxStackSize, setNoRepair, setTileEntityItemStackRenderer, setTranslationKey, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, shouldRotateAroundWhenRendering, showDurabilityBar, updateItemStackNBTpublic static final java.lang.String NBT_AGE
public ItemButterflyGE(EnumFlutterType type)
@Nullable public IButterfly getIndividual(net.minecraft.item.ItemStack itemstack)
getIndividual in class ItemGEprotected IAlleleSpecies getSpecies(net.minecraft.item.ItemStack itemStack)
getSpecies in class ItemGEpublic void getSubItems(net.minecraft.creativetab.CreativeTabs tab,
net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> subItems)
getSubItems in class net.minecraft.item.Itempublic void addCreativeItems(net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> subItems,
boolean hideSecrets)
public boolean onEntityItemUpdate(net.minecraft.entity.item.EntityItem entityItem)
onEntityItemUpdate in class net.minecraft.item.Itempublic void registerModel(net.minecraft.item.Item item,
IModelManager manager)
registerModel in interface IItemModelRegisterregisterModel in class ItemForestrypublic net.minecraft.util.EnumActionResult onItemUse(net.minecraft.entity.player.EntityPlayer player,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
net.minecraft.util.EnumHand hand,
net.minecraft.util.EnumFacing facing,
float hitX,
float hitY,
float hitZ)
onItemUse in class net.minecraft.item.Itempublic static void setAge(net.minecraft.item.ItemStack cocoon,
int age)
public static int getAge(net.minecraft.item.ItemStack cocoon)
public void registerSprites(ITextureManager manager)
registerSprites in interface ISpriteRegisterpublic java.lang.String getItemStackDisplayName(net.minecraft.item.ItemStack itemstack)
getItemStackDisplayName in class net.minecraft.item.Itempublic int getColorFromItemstack(net.minecraft.item.ItemStack stack,
int tintIndex)
getColorFromItemstack in interface IColoredItem