public class ItemPotion extends Item
Item.ToolMaterialbFull3D, canRepair, delegate, hasSubtypes, itemModifierUUID, itemRand, itemRegistry, maxStackSize| Constructor and Description |
|---|
ItemPotion() |
| Modifier and Type | Method and Description |
|---|---|
void |
addInformation(ItemStack stack,
EntityPlayer playerIn,
java.util.List tooltip,
boolean advanced) |
int |
getColorFromDamage(int meta) |
int |
getColorFromItemStack(ItemStack stack,
int renderPass) |
java.util.List |
getEffects(int meta) |
java.util.List |
getEffects(ItemStack stack) |
java.lang.String |
getItemStackDisplayName(ItemStack stack) |
EnumAction |
getItemUseAction(ItemStack stack) |
int |
getMaxItemUseDuration(ItemStack stack) |
void |
getSubItems(Item itemIn,
CreativeTabs tab,
java.util.List subItems) |
boolean |
hasEffect(ItemStack stack) |
boolean |
isEffectInstant(int meta) |
static boolean |
isSplash(int meta) |
ItemStack |
onItemRightClick(ItemStack itemStackIn,
World worldIn,
EntityPlayer playerIn) |
ItemStack |
onItemUseFinish(ItemStack stack,
World worldIn,
EntityPlayer playerIn) |
canHarvestBlock, canHarvestBlock, canItemEditBlocks, createEntity, doesSneakBypassUse, getArmorModel, getArmorTexture, getAttributeModifiers, getByNameOrId, getChestGenBase, getContainerItem, getContainerItem, getCreativeTab, getCreativeTabs, getDamage, getDigSpeed, getDurabilityForDisplay, getEntityLifespan, getFontRenderer, getHarvestLevel, getHasSubtypes, getIdFromItem, getIsRepairable, getItemAttributeModifiers, getItemById, getItemEnchantability, getItemEnchantability, getItemFromBlock, getItemStackLimit, getItemStackLimit, getMaxDamage, getMaxDamage, getMetadata, getMetadata, getModel, getMovingObjectPositionFromPlayer, getPotionEffect, getRarity, getShareTag, getSmeltingExperience, getStrVsBlock, getToolClasses, getUnlocalizedName, getUnlocalizedName, getUnlocalizedNameInefficiently, hasContainerItem, hasContainerItem, hasCustomEntity, hitEntity, isBeaconPayment, isBookEnchantable, isDamageable, isDamaged, isFull3D, isItemTool, isMap, isPotionIngredient, isRepairable, isValidArmor, itemInteractionForEntity, onArmorTick, onBlockDestroyed, onBlockStartBreak, onCreated, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onItemUse, onItemUseFirst, onLeftClickEntity, onPlayerStoppedUsing, onUpdate, onUsingTick, registerItemBlock, registerItems, renderHelmetOverlay, setContainerItem, setCreativeTab, setDamage, setFull3D, setHarvestLevel, setHasSubtypes, setMaxDamage, setMaxStackSize, setNoRepair, setPotionEffect, setUnlocalizedName, shouldRotateAroundWhenRendering, showDurabilityBar, updateItemStackNBTpublic java.util.List getEffects(ItemStack stack)
public java.util.List getEffects(int meta)
public ItemStack onItemUseFinish(ItemStack stack, World worldIn, EntityPlayer playerIn)
onItemUseFinish in class Itempublic int getMaxItemUseDuration(ItemStack stack)
getMaxItemUseDuration in class Itempublic EnumAction getItemUseAction(ItemStack stack)
getItemUseAction in class Itempublic ItemStack onItemRightClick(ItemStack itemStackIn, World worldIn, EntityPlayer playerIn)
onItemRightClick in class Itempublic static boolean isSplash(int meta)
public int getColorFromDamage(int meta)
public int getColorFromItemStack(ItemStack stack, int renderPass)
getColorFromItemStack in class Itempublic java.lang.String getItemStackDisplayName(ItemStack stack)
getItemStackDisplayName in class Itempublic boolean isEffectInstant(int meta)
public void addInformation(ItemStack stack, EntityPlayer playerIn, java.util.List tooltip, boolean advanced)
addInformation in class Itempublic void getSubItems(Item itemIn, CreativeTabs tab, java.util.List subItems)
getSubItems in class Item