public class ItemPotion extends Item
Item.ToolMaterial
IForgeRegistryEntry.Impl<T extends IForgeRegistryEntry<T>>
ATTACK_DAMAGE_MODIFIER, ATTACK_SPEED_MODIFIER, bFull3D, canRepair, hasSubtypes, itemRand, maxStackSize, REGISTRY
delegate
Constructor and Description |
---|
ItemPotion() |
Modifier and Type | Method and Description |
---|---|
void |
addInformation(ItemStack stack,
World worldIn,
java.util.List<java.lang.String> tooltip,
ITooltipFlag flagIn) |
ItemStack |
getDefaultInstance() |
java.lang.String |
getItemStackDisplayName(ItemStack stack) |
EnumAction |
getItemUseAction(ItemStack stack) |
int |
getMaxItemUseDuration(ItemStack stack) |
void |
getSubItems(CreativeTabs tab,
NonNullList<ItemStack> items) |
boolean |
hasEffect(ItemStack stack) |
ActionResult<ItemStack> |
onItemRightClick(World worldIn,
EntityPlayer playerIn,
EnumHand handIn) |
ItemStack |
onItemUseFinish(ItemStack stack,
World worldIn,
EntityLivingBase entityLiving) |
addPropertyOverride, canApplyAtEnchantingTable, canContinueUsing, canDestroyBlockInCreative, canDisableShield, canHarvestBlock, canHarvestBlock, canItemEditBlocks, createEntity, doesSneakBypassUse, getAnimationParameters, getArmorModel, getArmorTexture, getAttributeModifiers, getByNameOrId, getContainerItem, getContainerItem, getCreativeTab, getCreativeTabs, getCreatorModId, getDamage, getDestroySpeed, getDurabilityForDisplay, getEntityLifespan, getEquipmentSlot, getFontRenderer, getForgeRarity, getHarvestLevel, getHasSubtypes, getHighlightTip, getHorseArmorTexture, getHorseArmorType, getIdFromItem, getIsRepairable, getItemAttributeModifiers, getItemBurnTime, getItemById, getItemEnchantability, getItemEnchantability, getItemFromBlock, getItemStackLimit, getItemStackLimit, getMaxDamage, getMaxDamage, getMetadata, getMetadata, getNBTShareTag, getPropertyGetter, getRarity, getRGBDurabilityForDisplay, getShareTag, getSmeltingExperience, getTileEntityItemStackRenderer, getToolClasses, getUnlocalizedName, getUnlocalizedName, getUnlocalizedNameInefficiently, getXpRepairRatio, hasContainerItem, hasContainerItem, hasCustomEntity, hasCustomProperties, hitEntity, initCapabilities, isBeaconPayment, isBookEnchantable, isDamageable, isDamaged, isEnchantable, isFull3D, isInCreativeTab, isMap, isRepairable, isShield, isValidArmor, itemInteractionForEntity, onArmorTick, onBlockDestroyed, onBlockStartBreak, onCreated, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onHorseArmorTick, onItemUse, onItemUseFirst, onLeftClickEntity, onPlayerStoppedUsing, onUpdate, onUsingTick, rayTrace, readNBTShareTag, registerItemBlock, registerItems, renderHelmetOverlay, setContainerItem, setCreativeTab, setDamage, setFull3D, setHarvestLevel, setHasSubtypes, setMaxDamage, setMaxStackSize, setNoRepair, setTileEntityItemStackRenderer, setUnlocalizedName, shouldCauseBlockBreakReset, shouldCauseReequipAnimation, shouldRotateAroundWhenRendering, showDurabilityBar, updateItemStackNBT
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
public ItemStack getDefaultInstance()
getDefaultInstance
in class Item
public ItemStack onItemUseFinish(ItemStack stack, World worldIn, EntityLivingBase entityLiving)
onItemUseFinish
in class Item
public int getMaxItemUseDuration(ItemStack stack)
getMaxItemUseDuration
in class Item
public EnumAction getItemUseAction(ItemStack stack)
getItemUseAction
in class Item
public ActionResult<ItemStack> onItemRightClick(World worldIn, EntityPlayer playerIn, EnumHand handIn)
onItemRightClick
in class Item
public java.lang.String getItemStackDisplayName(ItemStack stack)
getItemStackDisplayName
in class Item
public void addInformation(ItemStack stack, @Nullable World worldIn, java.util.List<java.lang.String> tooltip, ITooltipFlag flagIn)
addInformation
in class Item
public void getSubItems(CreativeTabs tab, NonNullList<ItemStack> items)
getSubItems
in class Item