public class ItemPotion extends Item
Item.ToolMaterial
bFull3D, canRepair, field_111210_e, hasSubtypes, iconString, itemIcon, itemRand, itemRegistry, maxStackSize
Constructor and Description |
---|
ItemPotion() |
Modifier and Type | Method and Description |
---|---|
void |
addInformation(ItemStack par1ItemStack,
EntityPlayer par2EntityPlayer,
java.util.List par3List,
boolean par4)
allows items to add custom lines of information to the mouseover description
|
static IIcon |
func_94589_d(java.lang.String par0Str) |
int |
getColorFromDamage(int par1) |
int |
getColorFromItemStack(ItemStack par1ItemStack,
int par2) |
java.util.List |
getEffects(int par1)
Returns a list of effects for the specified potion damage value.
|
java.util.List |
getEffects(ItemStack par1ItemStack)
Returns a list of potion effects for the specified itemstack.
|
IIcon |
getIconFromDamage(int par1)
Gets an icon index based on an item's damage value
|
IIcon |
getIconFromDamageForRenderPass(int par1,
int par2)
Gets an icon index based on an item's damage value and the given render pass
|
java.lang.String |
getItemStackDisplayName(ItemStack par1ItemStack) |
EnumAction |
getItemUseAction(ItemStack par1ItemStack)
returns the action that specifies what animation to play when the items is being used
|
int |
getMaxItemUseDuration(ItemStack par1ItemStack)
How long it takes to use or consume an item
|
void |
getSubItems(Item p_150895_1_,
CreativeTabs p_150895_2_,
java.util.List p_150895_3_)
returns a list of items with the same ID, but different meta (eg: dye returns 16 items)
|
boolean |
hasEffect(ItemStack par1ItemStack) |
boolean |
isEffectInstant(int par1) |
static boolean |
isSplash(int par0)
returns wether or not a potion is a throwable splash potion based on damage value
|
ItemStack |
onEaten(ItemStack par1ItemStack,
World par2World,
EntityPlayer par3EntityPlayer) |
ItemStack |
onItemRightClick(ItemStack par1ItemStack,
World par2World,
EntityPlayer par3EntityPlayer)
Called whenever this item is equipped and the right mouse button is pressed.
|
boolean |
onItemUse(ItemStack par1ItemStack,
EntityPlayer par2EntityPlayer,
World par3World,
int par4,
int par5,
int par6,
int par7,
float par8,
float par9,
float par10)
Callback for item usage.
|
void |
registerIcons(IIconRegister par1IconRegister) |
boolean |
requiresMultipleRenderPasses() |
canHarvestBlock, canItemEditBlocks, createEntity, doesContainerItemLeaveCraftingGrid, doesSneakBypassUse, func_150893_a, func_150897_b, getArmorModel, getArmorTexture, getChestGenBase, getContainerItem, getContainerItem, getCreativeTab, getCreativeTabs, getDamage, getDigSpeed, getDisplayDamage, getEntityLifespan, getFontRenderer, getHarvestLevel, getHasSubtypes, getIcon, getIcon, getIconIndex, getIconString, getIdFromItem, getIsRepairable, getItemAttributeModifiers, getItemById, getItemEnchantability, getItemFromBlock, getItemStackLimit, getItemStackLimit, getMaxDamage, getMaxDamage, getMetadata, getMovingObjectPositionFromPlayer, getPotionEffect, getRarity, getRenderPasses, getShareTag, getSmeltingExperience, getSpriteNumber, getToolClasses, getUnlocalizedName, getUnlocalizedName, getUnlocalizedNameInefficiently, hasContainerItem, hasContainerItem, hasCustomEntity, hasEffect, hitEntity, isBookEnchantable, isDamageable, isDamaged, isFull3D, isItemTool, isMap, isPotionIngredient, isRepairable, isValidArmor, itemInteractionForEntity, onArmorTick, onBlockDestroyed, onBlockStartBreak, onCreated, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onItemUseFirst, onLeftClickEntity, onPlayerStoppedUsing, onUpdate, onUsingTick, registerItems, renderHelmetOverlay, setContainerItem, setCreativeTab, setDamage, setFull3D, setHarvestLevel, setHasSubtypes, setMaxDamage, setMaxStackSize, setNoRepair, setPotionEffect, setTextureName, setUnlocalizedName, shouldRotateAroundWhenRendering
public java.util.List getEffects(ItemStack par1ItemStack)
public java.util.List getEffects(int par1)
public ItemStack onEaten(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
public int getMaxItemUseDuration(ItemStack par1ItemStack)
getMaxItemUseDuration
in class Item
public EnumAction getItemUseAction(ItemStack par1ItemStack)
getItemUseAction
in class Item
public ItemStack onItemRightClick(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
onItemRightClick
in class Item
public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10)
public IIcon getIconFromDamage(int par1)
getIconFromDamage
in class Item
public IIcon getIconFromDamageForRenderPass(int par1, int par2)
getIconFromDamageForRenderPass
in class Item
public static boolean isSplash(int par0)
public int getColorFromDamage(int par1)
public int getColorFromItemStack(ItemStack par1ItemStack, int par2)
getColorFromItemStack
in class Item
public boolean requiresMultipleRenderPasses()
requiresMultipleRenderPasses
in class Item
public boolean isEffectInstant(int par1)
public java.lang.String getItemStackDisplayName(ItemStack par1ItemStack)
getItemStackDisplayName
in class Item
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, java.util.List par3List, boolean par4)
addInformation
in class Item
public void getSubItems(Item p_150895_1_, CreativeTabs p_150895_2_, java.util.List p_150895_3_)
getSubItems
in class Item
public void registerIcons(IIconRegister par1IconRegister)
registerIcons
in class Item
public static IIcon func_94589_d(java.lang.String par0Str)