Package net.minecraft.world.item
Class PotionItem
- java.lang.Object
-
- net.minecraft.world.item.Item
-
- net.minecraft.world.item.PotionItem
-
public class PotionItem extends Item
-
-
Field Summary
-
Fields inherited from class net.minecraft.world.item.Item
ALL_ITEMS, APPLE, ARROW, BED, BEEF, bFull3D, BLAZE_POWDER, BLAZE_ROD, BOAT, BONE, BOOK, BOW, BOWL, BREAD, BREWING_STAND, BRICK, BUCKET, CAKE, CAULDRON, CHAINMAIL_BOOTS, CHAINMAIL_CHESTPLATE, CHAINMAIL_HELMET, CHAINMAIL_LEGGINGS, CHEST_MINECART, CHICKEN, CLAY_BALL, CLOCK, COAL, COMPASS, COOKED_BEEF, COOKED_CHICKEN, COOKED_FISH, COOKED_PORKCHOP, COOKIE, DIAMOND, DIAMOND_AXE, DIAMOND_BOOTS, DIAMOND_CHESTPLATE, DIAMOND_HELMET, DIAMOND_HOE, DIAMOND_LEGGINGS, DIAMOND_PICKAXE, DIAMOND_SHOVEL, DIAMOND_SWORD, DYE, EGG, ENDER_PEARL, EXPERIENCE_BOTTLE, EYE_OF_ENDER, FEATHER, FERMENTED_SPIDER_EYE, FIRE_CHARGE, FISH, FISHING_ROD, FLINT, FLINT_AND_STEEL, FURNACE_MINECART, GHAST_TEAR, GLASS_BOTTLE, GLISTERING_MELON, GLOWSTONE_DUST, GOLD_INGOT, GOLD_NUGGET, GOLDEN_APPLE, GOLDEN_AXE, GOLDEN_BOOTS, GOLDEN_CHESTPLATE, GOLDEN_HELMET, GOLDEN_HOE, GOLDEN_LEGGINGS, GOLDEN_PICKAXE, GOLDEN_SHOVEL, GOLDEN_SWORD, GUNPOWDER, hasSubtypes, iconIndex, IRON_AXE, IRON_BOOTS, IRON_CHESTPLATE, IRON_DOOR, IRON_HELMET, IRON_HOE, IRON_INGOT, IRON_LEGGINGS, IRON_PICKAXE, IRON_SHOVEL, IRON_SWORD, LAVA_BUCKET, LEATHER, LEATHER_BOOTS, LEATHER_CHESTPLATE, LEATHER_HELMET, LEATHER_LEGGINGS, MAGMA_CREAM, MAP, maxStackSize, MELON, MELON_SEEDS, MILK_BUCKET, MINECART, MUSHROOM_STEW, MUSIC_DISC_11, MUSIC_DISC_13, MUSIC_DISC_BLOCKS, MUSIC_DISC_CAT, MUSIC_DISC_CHIRP, MUSIC_DISC_FAR, MUSIC_DISC_MALL, MUSIC_DISC_MELLOHI, MUSIC_DISC_STAL, MUSIC_DISC_STRAD, MUSIC_DISC_WARD, NETHER_WART, PAINTING, PAPER, PORKCHOP, POTION, PUMPKIN_SEEDS, RANDOM, REDSTONE, REDSTONE_REPEATER, ROTTEN_FLESH, SADDLE, SEEDS, SHEARS, shiftedIndex, SIGN, SLIME_BALL, SNOWBALL, SPAWN_EGG, SPIDER_EYE, STICK, STONE_AXE, STONE_HOE, STONE_PICKAXE, STONE_SHOVEL, STONE_SWORD, STRING, SUGAR, SUGARCANE, WATER_BUCKET, WHEAT, WOODEN_AXE, WOODEN_DOOR, WOODEN_HOE, WOODEN_PICKAXE, WOODEN_SHOVEL, WOODEN_SWORD
-
-
Constructor Summary
Constructors Constructor Description PotionItem(int var1)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addInformation(ItemStack var1, java.util.List var2)
@net.minecraft.modding.api.Side.Client int
func_46057_a(int var1, int var2)
@net.minecraft.modding.api.Side.Client boolean
func_46058_c()
@net.minecraft.modding.api.Side.Client int
getColorFromDamage(int var1, int var2)
java.util.List
getEffects(int var1)
java.util.List
getEffects(ItemStack var1)
@net.minecraft.modding.api.Side.Client int
getIconFromDamage(int var1)
@Client java.lang.String
getItemDisplayName(ItemStack var1)
EnumAction
getItemUseAction(ItemStack var1)
int
getMaxItemUseDuration(ItemStack var1)
void
getSubItems(int var1, CreativeTab var2, java.util.List var3)
@net.minecraft.modding.api.Side.Client boolean
hasEffect(ItemStack var1)
@net.minecraft.modding.api.Side.Client boolean
isEffectInstant(int var1)
static boolean
isSplash(int var0)
ItemStack
onFoodEaten(ItemStack var1, World var2, Player var3)
ItemStack
onItemRightClick(ItemStack var1, World var2, Player var3)
boolean
onItemUse(ItemStack var1, Player var2, World var3, int i, int j, int k, int l)
-
Methods inherited from class net.minecraft.world.item.Item
canHarvestBlock, doesContainerItemLeaveCraftingGrid, func_28019_b, func_46056_k, getContainerItem, getDamageVsEntity, getHasSubtypes, getIconIndex, getItemEnchantability, getItemName, getItemNameIS, getItemStackLimit, getLocalItemName, getMaxDamage, getMetadata, getMovingObjectPositionFromPlayer, getPotionEffect, getRarity, getStatName, getStrVsBlock, hasContainerItem, hitEntity, isDamageable, isFull3D, isItemTool, isPotionIngredient, makeSubItems, makeSubItems, onBlockDestroyed, onCreated, onPlayerStoppedUsing, onUpdate, postRegister, registerVanilla, setContainerItem, setFull3D, setHasSubtypes, setIconCoord, setIconIndex, setItemName, setMaxDamage, setMaxStackSize, setPotionEffect, shouldRotateAroundWhenRendering, toString, useItemOnEntity
-
-
-
-
Method Detail
-
getEffects
public java.util.List getEffects(ItemStack var1)
-
getEffects
public java.util.List getEffects(int var1)
-
onFoodEaten
public ItemStack onFoodEaten(ItemStack var1, World var2, Player var3)
- Overrides:
onFoodEaten
in classItem
-
getMaxItemUseDuration
public int getMaxItemUseDuration(ItemStack var1)
- Overrides:
getMaxItemUseDuration
in classItem
-
getItemUseAction
public EnumAction getItemUseAction(ItemStack var1)
- Overrides:
getItemUseAction
in classItem
-
onItemRightClick
public ItemStack onItemRightClick(ItemStack var1, World var2, Player var3)
- Overrides:
onItemRightClick
in classItem
-
onItemUse
public boolean onItemUse(ItemStack var1, Player var2, World var3, int i, int j, int k, int l)
-
getIconFromDamage
@Client public @net.minecraft.modding.api.Side.Client int getIconFromDamage(int var1)
- Overrides:
getIconFromDamage
in classItem
-
func_46057_a
@Client public @net.minecraft.modding.api.Side.Client int func_46057_a(int var1, int var2)
- Overrides:
func_46057_a
in classItem
-
isSplash
public static boolean isSplash(int var0)
-
getColorFromDamage
@Client public @net.minecraft.modding.api.Side.Client int getColorFromDamage(int var1, int var2)
- Overrides:
getColorFromDamage
in classItem
-
func_46058_c
@Client public @net.minecraft.modding.api.Side.Client boolean func_46058_c()
- Overrides:
func_46058_c
in classItem
-
isEffectInstant
@Client public @net.minecraft.modding.api.Side.Client boolean isEffectInstant(int var1)
-
getItemDisplayName
@Client public @Client java.lang.String getItemDisplayName(ItemStack var1)
- Overrides:
getItemDisplayName
in classItem
-
addInformation
@Client public void addInformation(ItemStack var1, java.util.List var2)
- Overrides:
addInformation
in classItem
-
getSubItems
public void getSubItems(int var1, CreativeTab var2, java.util.List var3)
- Overrides:
getSubItems
in classItem
-
-