public class ItemPotion extends Item
appleGold, appleRed, arrow, axeDiamond, axeGold, axeIron, axeStone, axeWood, bakedPotato, bed, beefCooked, beefRaw, blazePowder, blazeRod, boat, bone, book, bootsChain, bootsDiamond, bootsGold, bootsIron, bootsLeather, bow, bowlEmpty, bowlSoup, bread, brewingStand, brick, bucketEmpty, bucketLava, bucketMilk, bucketWater, cake, carrot, carrotOnAStick, cauldron, chickenCooked, chickenRaw, clay, coal, comparator, compass, cookie, diamond, doorIron, doorWood, dyePowder, egg, emerald, emptyMap, enchantedBook, enderPearl, expBottle, eyeOfEnder, feather, fermentedSpiderEye, fireballCharge, firework, fireworkCharge, fishCooked, fishingRod, fishRaw, flint, flintAndSteel, flowerPot, ghastTear, glassBottle, glowstone, goldenCarrot, goldNugget, gunpowder, helmetChain, helmetDiamond, helmetGold, helmetIron, helmetLeather, hoeDiamond, hoeGold, hoeIron, hoeStone, hoeWood, horseArmorDiamond, horseArmorGold, horseArmorIron, ingotGold, ingotIron, itemFrame, itemID, itemsList, leash, leather, legsChain, legsDiamond, legsGold, legsIron, legsLeather, magmaCream, map, melon, melonSeeds, minecartCrate, minecartEmpty, minecartHopper, minecartPowered, minecartTnt, monsterPlacer, nameTag, netherQuartz, netherrackBrick, netherStalkSeeds, netherStar, painting, paper, pickaxeDiamond, pickaxeGold, pickaxeIron, pickaxeStone, pickaxeWood, plateChain, plateDiamond, plateGold, plateIron, plateLeather, pocketSundial, poisonousPotato, porkCooked, porkRaw, potato, potion, pumpkinPie, pumpkinSeeds, record11, record13, recordBlocks, recordCat, recordChirp, recordFar, recordMall, recordMellohi, recordStal, recordStrad, recordWait, recordWard, redstone, redstoneRepeater, reed, rottenFlesh, saddle, seeds, shears, shovelDiamond, shovelGold, shovelIron, shovelStone, shovelWood, sign, silk, skull, slimeBall, snowball, speckledMelon, spiderEye, stick, sugar, swordDiamond, swordGold, swordIron, swordStone, swordWood, wheat, writableBook, writtenBook
Constructor and Description |
---|
ItemPotion(int par1) |
Modifier and Type | Method and Description |
---|---|
void |
addInformation(ItemStack par1ItemStack,
EntityPlayer par2EntityPlayer,
List par3List,
boolean par4) |
static Icon |
func_94589_d(String par0Str) |
int |
getColorFromDamage(int par1) |
int |
getColorFromItemStack(ItemStack par1ItemStack,
int par2) |
List |
getEffects(int par1)
Returns a list of effects for the specified potion damage value.
|
List |
getEffects(ItemStack par1ItemStack)
Returns a list of potion effects for the specified itemstack.
|
Icon |
getIconFromDamage(int par1) |
Icon |
getIconFromDamageForRenderPass(int par1,
int par2) |
String |
getItemDisplayName(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(int par1,
CreativeTabs par2CreativeTabs,
List par3List) |
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(IconRegister par1IconRegister) |
boolean |
requiresMultipleRenderPasses() |
canHarvestBlock, canHarvestBlock, canItemEditBlocks, createEntity, doesContainerItemLeaveCraftingGrid, getArmorModel, getArmorTexture, getArmorTexture, getChestGenBase, getContainerItem, getContainerItemStack, getCreativeTab, getCreativeTabs, getDamage, getDamageVsEntity, getDisplayDamage, getEntityLifespan, getFontRenderer, getHasSubtypes, getIcon, getIcon, getIconIndex, getIsRepairable, getItemAttributeModifiers, getItemEnchantability, getItemStackDisplayName, getItemStackLimit, getMaxDamage, getMaxDamage, getMetadata, getPotionEffect, getPotionEffect, getRarity, getRenderPasses, getShareTag, getSmeltingExperience, getSpriteNumber, getStatName, getStrVsBlock, getStrVsBlock, getUnlocalizedName, getUnlocalizedName, getUnlocalizedNameInefficiently, hasContainerItem, hasCustomEntity, hasEffect, hitEntity, isBookEnchantable, isDamageable, isDamaged, isFull3D, isItemTool, isMap, isPotionIngredient, isPotionIngredient, isRepairable, isValidArmor, itemInteractionForEntity, onArmorTickUpdate, onBlockDestroyed, onBlockStartBreak, onCreated, onDroppedByPlayer, onEntityItemUpdate, onEntitySwing, onItemUseFirst, onLeftClickEntity, onPlayerStoppedUsing, onUpdate, onUsingItemTick, renderHelmetOverlay, setContainerItem, setCreativeTab, setDamage, setFull3D, setMaxDamage, setMaxStackSize, setNoRepair, setPotionEffect, setTextureName, setUnlocalizedName, shouldPassSneakingClickToBlock, shouldRotateAroundWhenRendering
public List getEffects(ItemStack par1ItemStack)
public 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 Icon getIconFromDamage(int par1)
getIconFromDamage
in class Item
public Icon 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 String getItemDisplayName(ItemStack par1ItemStack)
getItemDisplayName
in class Item
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4)
addInformation
in class Item
public void getSubItems(int par1, CreativeTabs par2CreativeTabs, List par3List)
getSubItems
in class Item
public void registerIcons(IconRegister par1IconRegister)
registerIcons
in class Item