YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.item.Item Class Reference
Inheritance diagram for net.minecraft.item.Item:
net.minecraft.item.ItemArmor net.minecraft.item.ItemBed net.minecraft.item.ItemBlock net.minecraft.item.ItemBoat net.minecraft.item.ItemBook net.minecraft.item.ItemBow net.minecraft.item.ItemBucket net.minecraft.item.ItemBucketMilk net.minecraft.item.ItemCarrotOnAStick net.minecraft.item.ItemCoal net.minecraft.item.ItemDoor net.minecraft.item.ItemDye net.minecraft.item.ItemEditableBook net.minecraft.item.ItemEgg net.minecraft.item.ItemEnchantedBook net.minecraft.item.ItemEnderEye net.minecraft.item.ItemEnderPearl net.minecraft.item.ItemExpBottle net.minecraft.item.ItemFireball net.minecraft.item.ItemFirework net.minecraft.item.ItemFireworkCharge net.minecraft.item.ItemFishingRod net.minecraft.item.ItemFlintAndSteel net.minecraft.item.ItemFood net.minecraft.item.ItemGlassBottle net.minecraft.item.ItemHangingEntity net.minecraft.item.ItemHoe net.minecraft.item.ItemMapBase net.minecraft.item.ItemMinecart net.minecraft.item.ItemMonsterPlacer net.minecraft.item.ItemPotion net.minecraft.item.ItemRecord net.minecraft.item.ItemRedstone net.minecraft.item.ItemReed net.minecraft.item.ItemSaddle net.minecraft.item.ItemSeeds net.minecraft.item.ItemShears net.minecraft.item.ItemSign net.minecraft.item.ItemSimpleFoiled net.minecraft.item.ItemSkull net.minecraft.item.ItemSnowball net.minecraft.item.ItemSword net.minecraft.item.ItemTool net.minecraft.item.ItemWritableBook YATS.item.ItemSpanner

Public Member Functions

 Item (int par1)
 
Item setMaxStackSize (int par1)
 
int getSpriteNumber ()
 
Icon getIconFromDamage (int par1)
 
final Icon getIconIndex (ItemStack par1ItemStack)
 
boolean onItemUse (ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10)
 
float getStrVsBlock (ItemStack par1ItemStack, Block par2Block)
 
ItemStack onItemRightClick (ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
 
ItemStack onEaten (ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
 
int getItemStackLimit ()
 
int getMetadata (int par1)
 
boolean getHasSubtypes ()
 
int getMaxDamage ()
 
Item setMaxDamage (int par1)
 
boolean isDamageable ()
 
boolean hitEntity (ItemStack par1ItemStack, EntityLiving par2EntityLiving, EntityLiving par3EntityLiving)
 
boolean onBlockDestroyed (ItemStack par1ItemStack, World par2World, int par3, int par4, int par5, int par6, EntityLiving par7EntityLiving)
 
int getDamageVsEntity (Entity par1Entity)
 
boolean canHarvestBlock (Block par1Block)
 
boolean itemInteractionForEntity (ItemStack par1ItemStack, EntityLiving par2EntityLiving)
 
Item setFull3D ()
 
boolean isFull3D ()
 
boolean shouldRotateAroundWhenRendering ()
 
Item setUnlocalizedName (String par1Str)
 
String getLocalizedName (ItemStack par1ItemStack)
 
String getUnlocalizedName ()
 
String getUnlocalizedName (ItemStack par1ItemStack)
 
Item setContainerItem (Item par1Item)
 
boolean doesContainerItemLeaveCraftingGrid (ItemStack par1ItemStack)
 
boolean getShareTag ()
 
Item getContainerItem ()
 
boolean hasContainerItem ()
 
String getStatName ()
 
String func_77653_i (ItemStack par1ItemStack)
 
int getColorFromItemStack (ItemStack par1ItemStack, int par2)
 
void onUpdate (ItemStack par1ItemStack, World par2World, Entity par3Entity, int par4, boolean par5)
 
void onCreated (ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer)
 
boolean isMap ()
 
EnumAction getItemUseAction (ItemStack par1ItemStack)
 
int getMaxItemUseDuration (ItemStack par1ItemStack)
 
void onPlayerStoppedUsing (ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer, int par4)
 
Item setPotionEffect (String par1Str)
 
String getPotionEffect ()
 
boolean isPotionIngredient ()
 
void addInformation (ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4)
 
String getItemDisplayName (ItemStack par1ItemStack)
 
boolean hasEffect (ItemStack par1ItemStack)
 
EnumRarity getRarity (ItemStack par1ItemStack)
 
boolean isItemTool (ItemStack par1ItemStack)
 
int getItemEnchantability ()
 
boolean requiresMultipleRenderPasses ()
 
Icon getIconFromDamageForRenderPass (int par1, int par2)
 
void getSubItems (int par1, CreativeTabs par2CreativeTabs, List par3List)
 
Item setCreativeTab (CreativeTabs par1CreativeTabs)
 
CreativeTabs getCreativeTab ()
 
boolean func_82788_x ()
 
boolean getIsRepairable (ItemStack par1ItemStack, ItemStack par2ItemStack)
 
void registerIcons (IconRegister par1IconRegister)
 
boolean onDroppedByPlayer (ItemStack item, EntityPlayer player)
 
boolean onItemUseFirst (ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ)
 
float getStrVsBlock (ItemStack itemstack, Block block, int metadata)
 
boolean isRepairable ()
 
Item setNoRepair ()
 
boolean onBlockStartBreak (ItemStack itemstack, int X, int Y, int Z, EntityPlayer player)
 
void onUsingItemTick (ItemStack stack, EntityPlayer player, int count)
 
boolean onLeftClickEntity (ItemStack stack, EntityPlayer player, Entity entity)
 
Icon getIcon (ItemStack stack, int renderPass, EntityPlayer player, ItemStack usingItem, int useRemaining)
 
int getRenderPasses (int metadata)
 
ItemStack getContainerItemStack (ItemStack itemStack)
 
int getEntityLifespan (ItemStack itemStack, World world)
 
boolean hasCustomEntity (ItemStack stack)
 
Entity createEntity (World world, Entity location, ItemStack itemstack)
 
boolean onEntityItemUpdate (EntityItem entityItem)
 
CreativeTabs[] getCreativeTabs ()
 
float getSmeltingExperience (ItemStack item)
 
Icon getIcon (ItemStack stack, int pass)
 
WeightedRandomChestContent getChestGenBase (ChestGenHooks chest, Random rnd, WeightedRandomChestContent original)
 
boolean shouldPassSneakingClickToBlock (World par2World, int par4, int par5, int par6)
 
void onArmorTickUpdate (World world, EntityPlayer player, ItemStack itemStack)
 
boolean isValidArmor (ItemStack stack, int armorType, Entity entity)
 
boolean isValidArmor (ItemStack stack, int armorType)
 
boolean isPotionIngredient (ItemStack stack)
 
String getPotionEffect (ItemStack stack)
 
boolean isBookEnchantable (ItemStack itemstack1, ItemStack itemstack2)
 
int getDamageVsEntity (Entity par1Entity, ItemStack itemStack)
 
String getArmorTexture (ItemStack stack, Entity entity, int slot, int layer)
 
FontRenderer getFontRenderer (ItemStack stack)
 
ModelBiped getArmorModel (EntityLiving entityLiving, ItemStack itemStack, int armorSlot)
 
boolean onEntitySwing (EntityLiving entityLiving, ItemStack stack)
 
void renderHelmetOverlay (ItemStack stack, EntityPlayer player, ScaledResolution resolution, float partialTicks, boolean hasScreen, int mouseX, int mouseY)
 
int getDamage (ItemStack stack)
 
int getItemDamageFromStack (ItemStack stack)
 
int getDisplayDamage (ItemStack stack)
 
int getItemDamageFromStackForDisplay (ItemStack stack)
 
int getMaxDamage (ItemStack stack)
 
int getItemMaxDamageFromStack (ItemStack stack)
 
boolean isDamaged (ItemStack stack)
 
boolean isItemStackDamaged (ItemStack stack)
 
void setDamage (ItemStack stack, int damage)
 
void setItemDamageForStack (ItemStack stack, int damage)
 
boolean canHarvestBlock (Block par1Block, ItemStack itemStack)
 

Public Attributes

final int itemID
 

Static Public Attributes

static Item[] itemsList = new Item[32000]
 
static Item shovelIron = (new ItemSpade(0, EnumToolMaterial.IRON)).setUnlocalizedName("shovelIron")
 
static Item pickaxeIron = (new ItemPickaxe(1, EnumToolMaterial.IRON)).setUnlocalizedName("pickaxeIron")
 
static Item axeIron = (new ItemAxe(2, EnumToolMaterial.IRON)).setUnlocalizedName("hatchetIron")
 
static Item flintAndSteel = (new ItemFlintAndSteel(3)).setUnlocalizedName("flintAndSteel")
 
static Item appleRed = (new ItemFood(4, 4, 0.3F, false)).setUnlocalizedName("apple")
 
static ItemBow bow = (ItemBow)(new ItemBow(5)).setUnlocalizedName("bow")
 
static Item arrow = (new Item(6)).setUnlocalizedName("arrow").setCreativeTab(CreativeTabs.tabCombat)
 
static Item coal = (new ItemCoal(7)).setUnlocalizedName("coal")
 
static Item diamond = (new Item(8)).setUnlocalizedName("diamond").setCreativeTab(CreativeTabs.tabMaterials)
 
static Item ingotIron = (new Item(9)).setUnlocalizedName("ingotIron").setCreativeTab(CreativeTabs.tabMaterials)
 
static Item ingotGold = (new Item(10)).setUnlocalizedName("ingotGold").setCreativeTab(CreativeTabs.tabMaterials)
 
static Item swordIron = (new ItemSword(11, EnumToolMaterial.IRON)).setUnlocalizedName("swordIron")
 
static Item swordWood = (new ItemSword(12, EnumToolMaterial.WOOD)).setUnlocalizedName("swordWood")
 
static Item shovelWood = (new ItemSpade(13, EnumToolMaterial.WOOD)).setUnlocalizedName("shovelWood")
 
static Item pickaxeWood = (new ItemPickaxe(14, EnumToolMaterial.WOOD)).setUnlocalizedName("pickaxeWood")
 
static Item axeWood = (new ItemAxe(15, EnumToolMaterial.WOOD)).setUnlocalizedName("hatchetWood")
 
static Item swordStone = (new ItemSword(16, EnumToolMaterial.STONE)).setUnlocalizedName("swordStone")
 
static Item shovelStone = (new ItemSpade(17, EnumToolMaterial.STONE)).setUnlocalizedName("shovelStone")
 
static Item pickaxeStone = (new ItemPickaxe(18, EnumToolMaterial.STONE)).setUnlocalizedName("pickaxeStone")
 
static Item axeStone = (new ItemAxe(19, EnumToolMaterial.STONE)).setUnlocalizedName("hatchetStone")
 
static Item swordDiamond = (new ItemSword(20, EnumToolMaterial.EMERALD)).setUnlocalizedName("swordDiamond")
 
static Item shovelDiamond = (new ItemSpade(21, EnumToolMaterial.EMERALD)).setUnlocalizedName("shovelDiamond")
 
static Item pickaxeDiamond = (new ItemPickaxe(22, EnumToolMaterial.EMERALD)).setUnlocalizedName("pickaxeDiamond")
 
static Item axeDiamond = (new ItemAxe(23, EnumToolMaterial.EMERALD)).setUnlocalizedName("hatchetDiamond")
 
static Item stick = (new Item(24)).setFull3D().setUnlocalizedName("stick").setCreativeTab(CreativeTabs.tabMaterials)
 
static Item bowlEmpty = (new Item(25)).setUnlocalizedName("bowl").setCreativeTab(CreativeTabs.tabMaterials)
 
static Item bowlSoup = (new ItemSoup(26, 6)).setUnlocalizedName("mushroomStew")
 
static Item swordGold = (new ItemSword(27, EnumToolMaterial.GOLD)).setUnlocalizedName("swordGold")
 
static Item shovelGold = (new ItemSpade(28, EnumToolMaterial.GOLD)).setUnlocalizedName("shovelGold")
 
static Item pickaxeGold = (new ItemPickaxe(29, EnumToolMaterial.GOLD)).setUnlocalizedName("pickaxeGold")
 
static Item axeGold = (new ItemAxe(30, EnumToolMaterial.GOLD)).setUnlocalizedName("hatchetGold")
 
static Item silk = (new ItemReed(31, Block.tripWire)).setUnlocalizedName("string").setCreativeTab(CreativeTabs.tabMaterials)
 
static Item feather = (new Item(32)).setUnlocalizedName("feather").setCreativeTab(CreativeTabs.tabMaterials)
 
static Item gunpowder = (new Item(33)).setUnlocalizedName("sulphur").setPotionEffect(PotionHelper.gunpowderEffect).setCreativeTab(CreativeTabs.tabMaterials)
 
static Item hoeWood = (new ItemHoe(34, EnumToolMaterial.WOOD)).setUnlocalizedName("hoeWood")
 
static Item hoeStone = (new ItemHoe(35, EnumToolMaterial.STONE)).setUnlocalizedName("hoeStone")
 
static Item hoeIron = (new ItemHoe(36, EnumToolMaterial.IRON)).setUnlocalizedName("hoeIron")
 
static Item hoeDiamond = (new ItemHoe(37, EnumToolMaterial.EMERALD)).setUnlocalizedName("hoeDiamond")
 
static Item hoeGold = (new ItemHoe(38, EnumToolMaterial.GOLD)).setUnlocalizedName("hoeGold")
 
static Item seeds = (new ItemSeeds(39, Block.crops.blockID, Block.tilledField.blockID)).setUnlocalizedName("seeds")
 
static Item wheat = (new Item(40)).setUnlocalizedName("wheat").setCreativeTab(CreativeTabs.tabMaterials)
 
static Item bread = (new ItemFood(41, 5, 0.6F, false)).setUnlocalizedName("bread")
 
static ItemArmor helmetLeather = (ItemArmor)(new ItemArmor(42, EnumArmorMaterial.CLOTH, 0, 0)).setUnlocalizedName("helmetCloth")
 
static ItemArmor plateLeather = (ItemArmor)(new ItemArmor(43, EnumArmorMaterial.CLOTH, 0, 1)).setUnlocalizedName("chestplateCloth")
 
static ItemArmor legsLeather = (ItemArmor)(new ItemArmor(44, EnumArmorMaterial.CLOTH, 0, 2)).setUnlocalizedName("leggingsCloth")
 
static ItemArmor bootsLeather = (ItemArmor)(new ItemArmor(45, EnumArmorMaterial.CLOTH, 0, 3)).setUnlocalizedName("bootsCloth")
 
static ItemArmor helmetChain = (ItemArmor)(new ItemArmor(46, EnumArmorMaterial.CHAIN, 1, 0)).setUnlocalizedName("helmetChain")
 
static ItemArmor plateChain = (ItemArmor)(new ItemArmor(47, EnumArmorMaterial.CHAIN, 1, 1)).setUnlocalizedName("chestplateChain")
 
static ItemArmor legsChain = (ItemArmor)(new ItemArmor(48, EnumArmorMaterial.CHAIN, 1, 2)).setUnlocalizedName("leggingsChain")
 
static ItemArmor bootsChain = (ItemArmor)(new ItemArmor(49, EnumArmorMaterial.CHAIN, 1, 3)).setUnlocalizedName("bootsChain")
 
static ItemArmor helmetIron = (ItemArmor)(new ItemArmor(50, EnumArmorMaterial.IRON, 2, 0)).setUnlocalizedName("helmetIron")
 
static ItemArmor plateIron = (ItemArmor)(new ItemArmor(51, EnumArmorMaterial.IRON, 2, 1)).setUnlocalizedName("chestplateIron")
 
static ItemArmor legsIron = (ItemArmor)(new ItemArmor(52, EnumArmorMaterial.IRON, 2, 2)).setUnlocalizedName("leggingsIron")
 
static ItemArmor bootsIron = (ItemArmor)(new ItemArmor(53, EnumArmorMaterial.IRON, 2, 3)).setUnlocalizedName("bootsIron")
 
static ItemArmor helmetDiamond = (ItemArmor)(new ItemArmor(54, EnumArmorMaterial.DIAMOND, 3, 0)).setUnlocalizedName("helmetDiamond")
 
static ItemArmor plateDiamond = (ItemArmor)(new ItemArmor(55, EnumArmorMaterial.DIAMOND, 3, 1)).setUnlocalizedName("chestplateDiamond")
 
static ItemArmor legsDiamond = (ItemArmor)(new ItemArmor(56, EnumArmorMaterial.DIAMOND, 3, 2)).setUnlocalizedName("leggingsDiamond")
 
static ItemArmor bootsDiamond = (ItemArmor)(new ItemArmor(57, EnumArmorMaterial.DIAMOND, 3, 3)).setUnlocalizedName("bootsDiamond")
 
static ItemArmor helmetGold = (ItemArmor)(new ItemArmor(58, EnumArmorMaterial.GOLD, 4, 0)).setUnlocalizedName("helmetGold")
 
static ItemArmor plateGold = (ItemArmor)(new ItemArmor(59, EnumArmorMaterial.GOLD, 4, 1)).setUnlocalizedName("chestplateGold")
 
static ItemArmor legsGold = (ItemArmor)(new ItemArmor(60, EnumArmorMaterial.GOLD, 4, 2)).setUnlocalizedName("leggingsGold")
 
static ItemArmor bootsGold = (ItemArmor)(new ItemArmor(61, EnumArmorMaterial.GOLD, 4, 3)).setUnlocalizedName("bootsGold")
 
static Item flint = (new Item(62)).setUnlocalizedName("flint").setCreativeTab(CreativeTabs.tabMaterials)
 
static Item porkRaw = (new ItemFood(63, 3, 0.3F, true)).setUnlocalizedName("porkchopRaw")
 
static Item porkCooked = (new ItemFood(64, 8, 0.8F, true)).setUnlocalizedName("porkchopCooked")
 
static Item painting = (new ItemHangingEntity(65, EntityPainting.class)).setUnlocalizedName("painting")
 
static Item appleGold = (new ItemAppleGold(66, 4, 1.2F, false)).setAlwaysEdible().setPotionEffect(Potion.regeneration.id, 5, 0, 1.0F).setUnlocalizedName("appleGold")
 
static Item sign = (new ItemSign(67)).setUnlocalizedName("sign")
 
static Item doorWood = (new ItemDoor(68, Material.wood)).setUnlocalizedName("doorWood")
 
static Item bucketEmpty = (new ItemBucket(69, 0)).setUnlocalizedName("bucket").setMaxStackSize(16)
 
static Item bucketWater = (new ItemBucket(70, Block.waterMoving.blockID)).setUnlocalizedName("bucketWater").setContainerItem(bucketEmpty)
 
static Item bucketLava = (new ItemBucket(71, Block.lavaMoving.blockID)).setUnlocalizedName("bucketLava").setContainerItem(bucketEmpty)
 
static Item minecartEmpty = (new ItemMinecart(72, 0)).setUnlocalizedName("minecart")
 
static Item saddle = (new ItemSaddle(73)).setUnlocalizedName("saddle")
 
static Item doorIron = (new ItemDoor(74, Material.iron)).setUnlocalizedName("doorIron")
 
static Item redstone = (new ItemRedstone(75)).setUnlocalizedName("redstone").setPotionEffect(PotionHelper.redstoneEffect)
 
static Item snowball = (new ItemSnowball(76)).setUnlocalizedName("snowball")
 
static Item boat = (new ItemBoat(77)).setUnlocalizedName("boat")
 
static Item leather = (new Item(78)).setUnlocalizedName("leather").setCreativeTab(CreativeTabs.tabMaterials)
 
static Item bucketMilk = (new ItemBucketMilk(79)).setUnlocalizedName("milk").setContainerItem(bucketEmpty)
 
static Item brick = (new Item(80)).setUnlocalizedName("brick").setCreativeTab(CreativeTabs.tabMaterials)
 
static Item clay = (new Item(81)).setUnlocalizedName("clay").setCreativeTab(CreativeTabs.tabMaterials)
 
static Item reed = (new ItemReed(82, Block.reed)).setUnlocalizedName("reeds").setCreativeTab(CreativeTabs.tabMaterials)
 
static Item paper = (new Item(83)).setUnlocalizedName("paper").setCreativeTab(CreativeTabs.tabMisc)
 
static Item book = (new ItemBook(84)).setUnlocalizedName("book").setCreativeTab(CreativeTabs.tabMisc)
 
static Item slimeBall = (new Item(85)).setUnlocalizedName("slimeball").setCreativeTab(CreativeTabs.tabMisc)
 
static Item minecartCrate = (new ItemMinecart(86, 1)).setUnlocalizedName("minecartChest")
 
static Item minecartPowered = (new ItemMinecart(87, 2)).setUnlocalizedName("minecartFurnace")
 
static Item egg = (new ItemEgg(88)).setUnlocalizedName("egg")
 
static Item compass = (new Item(89)).setUnlocalizedName("compass").setCreativeTab(CreativeTabs.tabTools)
 
static ItemFishingRod fishingRod = (ItemFishingRod)(new ItemFishingRod(90)).setUnlocalizedName("fishingRod")
 
static Item pocketSundial = (new Item(91)).setUnlocalizedName("clock").setCreativeTab(CreativeTabs.tabTools)
 
static Item lightStoneDust = (new Item(92)).setUnlocalizedName("yellowDust").setPotionEffect(PotionHelper.glowstoneEffect).setCreativeTab(CreativeTabs.tabMaterials)
 
static Item fishRaw = (new ItemFood(93, 2, 0.3F, false)).setUnlocalizedName("fishRaw")
 
static Item fishCooked = (new ItemFood(94, 5, 0.6F, false)).setUnlocalizedName("fishCooked")
 
static Item dyePowder = (new ItemDye(95)).setUnlocalizedName("dyePowder")
 
static Item bone = (new Item(96)).setUnlocalizedName("bone").setFull3D().setCreativeTab(CreativeTabs.tabMisc)
 
static Item sugar = (new Item(97)).setUnlocalizedName("sugar").setPotionEffect(PotionHelper.sugarEffect).setCreativeTab(CreativeTabs.tabMaterials)
 
static Item cake = (new ItemReed(98, Block.cake)).setMaxStackSize(1).setUnlocalizedName("cake").setCreativeTab(CreativeTabs.tabFood)
 
static Item bed = (new ItemBed(99)).setMaxStackSize(1).setUnlocalizedName("bed")
 
static Item redstoneRepeater = (new ItemReed(100, Block.redstoneRepeaterIdle)).setUnlocalizedName("diode").setCreativeTab(CreativeTabs.tabRedstone)
 
static Item cookie = (new ItemFood(101, 2, 0.1F, false)).setUnlocalizedName("cookie")
 
static ItemMap map = (ItemMap)(new ItemMap(102)).setUnlocalizedName("map")
 
static ItemShears shears = (ItemShears)(new ItemShears(103)).setUnlocalizedName("shears")
 
static Item melon = (new ItemFood(104, 2, 0.3F, false)).setUnlocalizedName("melon")
 
static Item pumpkinSeeds = (new ItemSeeds(105, Block.pumpkinStem.blockID, Block.tilledField.blockID)).setUnlocalizedName("seeds_pumpkin")
 
static Item melonSeeds = (new ItemSeeds(106, Block.melonStem.blockID, Block.tilledField.blockID)).setUnlocalizedName("seeds_melon")
 
static Item beefRaw = (new ItemFood(107, 3, 0.3F, true)).setUnlocalizedName("beefRaw")
 
static Item beefCooked = (new ItemFood(108, 8, 0.8F, true)).setUnlocalizedName("beefCooked")
 
static Item chickenRaw = (new ItemFood(109, 2, 0.3F, true)).setPotionEffect(Potion.hunger.id, 30, 0, 0.3F).setUnlocalizedName("chickenRaw")
 
static Item chickenCooked = (new ItemFood(110, 6, 0.6F, true)).setUnlocalizedName("chickenCooked")
 
static Item rottenFlesh = (new ItemFood(111, 4, 0.1F, true)).setPotionEffect(Potion.hunger.id, 30, 0, 0.8F).setUnlocalizedName("rottenFlesh")
 
static Item enderPearl = (new ItemEnderPearl(112)).setUnlocalizedName("enderPearl")
 
static Item blazeRod = (new Item(113)).setUnlocalizedName("blazeRod").setCreativeTab(CreativeTabs.tabMaterials)
 
static Item ghastTear = (new Item(114)).setUnlocalizedName("ghastTear").setPotionEffect(PotionHelper.ghastTearEffect).setCreativeTab(CreativeTabs.tabBrewing)
 
static Item goldNugget = (new Item(115)).setUnlocalizedName("goldNugget").setCreativeTab(CreativeTabs.tabMaterials)
 
static Item netherStalkSeeds = (new ItemSeeds(116, Block.netherStalk.blockID, Block.slowSand.blockID)).setUnlocalizedName("netherStalkSeeds").setPotionEffect("+4")
 
static ItemPotion potion = (ItemPotion)(new ItemPotion(117)).setUnlocalizedName("potion")
 
static Item glassBottle = (new ItemGlassBottle(118)).setUnlocalizedName("glassBottle")
 
static Item spiderEye = (new ItemFood(119, 2, 0.8F, false)).setPotionEffect(Potion.poison.id, 5, 0, 1.0F).setUnlocalizedName("spiderEye").setPotionEffect(PotionHelper.spiderEyeEffect)
 
static Item fermentedSpiderEye = (new Item(120)).setUnlocalizedName("fermentedSpiderEye").setPotionEffect(PotionHelper.fermentedSpiderEyeEffect).setCreativeTab(CreativeTabs.tabBrewing)
 
static Item blazePowder = (new Item(121)).setUnlocalizedName("blazePowder").setPotionEffect(PotionHelper.blazePowderEffect).setCreativeTab(CreativeTabs.tabBrewing)
 
static Item magmaCream = (new Item(122)).setUnlocalizedName("magmaCream").setPotionEffect(PotionHelper.magmaCreamEffect).setCreativeTab(CreativeTabs.tabBrewing)
 
static Item brewingStand = (new ItemReed(123, Block.brewingStand)).setUnlocalizedName("brewingStand").setCreativeTab(CreativeTabs.tabBrewing)
 
static Item cauldron = (new ItemReed(124, Block.cauldron)).setUnlocalizedName("cauldron").setCreativeTab(CreativeTabs.tabBrewing)
 
static Item eyeOfEnder = (new ItemEnderEye(125)).setUnlocalizedName("eyeOfEnder")
 
static Item speckledMelon = (new Item(126)).setUnlocalizedName("speckledMelon").setPotionEffect(PotionHelper.speckledMelonEffect).setCreativeTab(CreativeTabs.tabBrewing)
 
static Item monsterPlacer = (new ItemMonsterPlacer(127)).setUnlocalizedName("monsterPlacer")
 
static Item expBottle = (new ItemExpBottle(128)).setUnlocalizedName("expBottle")
 
static Item fireballCharge = (new ItemFireball(129)).setUnlocalizedName("fireball")
 
static Item writableBook = (new ItemWritableBook(130)).setUnlocalizedName("writingBook").setCreativeTab(CreativeTabs.tabMisc)
 
static Item writtenBook = (new ItemEditableBook(131)).setUnlocalizedName("writtenBook")
 
static Item emerald = (new Item(132)).setUnlocalizedName("emerald").setCreativeTab(CreativeTabs.tabMaterials)
 
static Item itemFrame = (new ItemHangingEntity(133, EntityItemFrame.class)).setUnlocalizedName("frame")
 
static Item flowerPot = (new ItemReed(134, Block.flowerPot)).setUnlocalizedName("flowerPot").setCreativeTab(CreativeTabs.tabDecorations)
 
static Item carrot = (new ItemSeedFood(135, 4, 0.6F, Block.carrot.blockID, Block.tilledField.blockID)).setUnlocalizedName("carrots")
 
static Item potato = (new ItemSeedFood(136, 1, 0.3F, Block.potato.blockID, Block.tilledField.blockID)).setUnlocalizedName("potato")
 
static Item bakedPotato = (new ItemFood(137, 6, 0.6F, false)).setUnlocalizedName("potatoBaked")
 
static Item poisonousPotato = (new ItemFood(138, 2, 0.3F, false)).setPotionEffect(Potion.poison.id, 5, 0, 0.6F).setUnlocalizedName("potatoPoisonous")
 
static ItemEmptyMap emptyMap = (ItemEmptyMap)(new ItemEmptyMap(139)).setUnlocalizedName("emptyMap")
 
static Item goldenCarrot = (new ItemFood(140, 6, 1.2F, false)).setUnlocalizedName("carrotGolden").setPotionEffect(PotionHelper.goldenCarrotEffect)
 
static Item skull = (new ItemSkull(141)).setUnlocalizedName("skull")
 
static Item carrotOnAStick = (new ItemCarrotOnAStick(142)).setUnlocalizedName("carrotOnAStick")
 
static Item netherStar = (new ItemSimpleFoiled(143)).setUnlocalizedName("netherStar").setCreativeTab(CreativeTabs.tabMaterials)
 
static Item pumpkinPie = (new ItemFood(144, 8, 0.3F, false)).setUnlocalizedName("pumpkinPie").setCreativeTab(CreativeTabs.tabFood)
 
static Item firework = (new ItemFirework(145)).setUnlocalizedName("fireworks")
 
static Item fireworkCharge = (new ItemFireworkCharge(146)).setUnlocalizedName("fireworksCharge").setCreativeTab(CreativeTabs.tabMisc)
 
static ItemEnchantedBook enchantedBook = (ItemEnchantedBook)(new ItemEnchantedBook(147)).setMaxStackSize(1).setUnlocalizedName("enchantedBook")
 
static Item comparator = (new ItemReed(148, Block.redstoneComparatorIdle)).setUnlocalizedName("comparator").setCreativeTab(CreativeTabs.tabRedstone)
 
static Item netherrackBrick = (new Item(149)).setUnlocalizedName("netherbrick").setCreativeTab(CreativeTabs.tabMaterials)
 
static Item netherQuartz = (new Item(150)).setUnlocalizedName("netherquartz").setCreativeTab(CreativeTabs.tabMaterials)
 
static Item minecartTnt = (new ItemMinecart(151, 3)).setUnlocalizedName("minecartTnt")
 
static Item minecartHopper = (new ItemMinecart(152, 5)).setUnlocalizedName("minecartHopper")
 
static Item record13 = (new ItemRecord(2000, "13")).setUnlocalizedName("record")
 
static Item recordCat = (new ItemRecord(2001, "cat")).setUnlocalizedName("record")
 
static Item recordBlocks = (new ItemRecord(2002, "blocks")).setUnlocalizedName("record")
 
static Item recordChirp = (new ItemRecord(2003, "chirp")).setUnlocalizedName("record")
 
static Item recordFar = (new ItemRecord(2004, "far")).setUnlocalizedName("record")
 
static Item recordMall = (new ItemRecord(2005, "mall")).setUnlocalizedName("record")
 
static Item recordMellohi = (new ItemRecord(2006, "mellohi")).setUnlocalizedName("record")
 
static Item recordStal = (new ItemRecord(2007, "stal")).setUnlocalizedName("record")
 
static Item recordStrad = (new ItemRecord(2008, "strad")).setUnlocalizedName("record")
 
static Item recordWard = (new ItemRecord(2009, "ward")).setUnlocalizedName("record")
 
static Item record11 = (new ItemRecord(2010, "11")).setUnlocalizedName("record")
 
static Item recordWait = (new ItemRecord(2011, "wait")).setUnlocalizedName("record")
 

Protected Member Functions

Item setHasSubtypes (boolean par1)
 
MovingObjectPosition getMovingObjectPositionFromPlayer (World par1World, EntityPlayer par2EntityPlayer, boolean par3)
 

Protected Attributes

int maxStackSize = 64
 
boolean bFull3D = false
 
boolean hasSubtypes = false
 
Icon itemIcon
 
boolean canRepair = true
 

Static Protected Attributes

static Random itemRand = new Random()
 

Constructor & Destructor Documentation

net.minecraft.item.Item.Item ( int  par1)

Member Function Documentation

void net.minecraft.item.Item.addInformation ( ItemStack  par1ItemStack,
EntityPlayer  par2EntityPlayer,
List  par3List,
boolean  par4 
)

allows items to add custom lines of information to the mouseover description

boolean net.minecraft.item.Item.canHarvestBlock ( Block  par1Block)

Returns if the item (tool) can harvest results from the block type.

boolean net.minecraft.item.Item.canHarvestBlock ( Block  par1Block,
ItemStack  itemStack 
)

ItemStack sensitive version of canHarvestBlock(Block)

Parameters
par1BlockThe block trying to harvest
itemStackThe itemstack used to harvest the block
Returns
true if can harvest the block
Entity net.minecraft.item.Item.createEntity ( World  world,
Entity  location,
ItemStack  itemstack 
)

This function should return a new entity to replace the dropped item. Returning null here will not kill the EntityItem and will leave it to function normally. Called when the item it placed in a world.

Parameters
worldThe world object
locationThe EntityItem object, useful for getting the position of the entity
itemstackThe current item stack
Returns
A new Entity object to spawn or null
boolean net.minecraft.item.Item.doesContainerItemLeaveCraftingGrid ( ItemStack  par1ItemStack)

If this returns true, after a recipe involving this item is crafted the container item will be added to the player's inventory instead of remaining in the crafting grid.

String net.minecraft.item.Item.func_77653_i ( ItemStack  par1ItemStack)
boolean net.minecraft.item.Item.func_82788_x ( )
ModelBiped net.minecraft.item.Item.getArmorModel ( EntityLiving  entityLiving,
ItemStack  itemStack,
int  armorSlot 
)

Override this method to have an item handle its own armor rendering.

Parameters
entityLivingThe entity wearing the armor
itemStackThe itemStack to render the model of
armorSlot0=head, 1=torso, 2=legs, 3=feet
Returns
A ModelBiped to render instead of the default
String net.minecraft.item.Item.getArmorTexture ( ItemStack  stack,
Entity  entity,
int  slot,
int  layer 
)

Called by RenderBiped and RenderPlayer to determine the armor texture that should be use for the currently equiped item. This will only be called on instances of ItemArmor.

Returning null from this function will use the default value.

Parameters
stackItemStack for the equpt armor
entityThe entity wearing the armor
slotThe slot the armor is in
layerThe render layer, either 1 or 2, 2 is only used for CLOTH armor by default
Returns
Path of texture to bind, or null to use default
WeightedRandomChestContent net.minecraft.item.Item.getChestGenBase ( ChestGenHooks  chest,
Random  rnd,
WeightedRandomChestContent  original 
)

Generates the base Random item for a specific instance of the chest gen, Enchanted books use this to pick a random enchantment.

Parameters
chestThe chest category to generate for
rndWorld RNG
originalOriginal result registered with the chest gen hooks.
Returns
New values to use as the random item, typically this will be original
int net.minecraft.item.Item.getColorFromItemStack ( ItemStack  par1ItemStack,
int  par2 
)
Item net.minecraft.item.Item.getContainerItem ( )
ItemStack net.minecraft.item.Item.getContainerItemStack ( ItemStack  itemStack)

ItemStack sensitive version of getContainerItem. Returns a full ItemStack instance of the result.

Parameters
itemStackThe current ItemStack
Returns
The resulting ItemStack
CreativeTabs net.minecraft.item.Item.getCreativeTab ( )

gets the CreativeTab this item is displayed on

CreativeTabs [] net.minecraft.item.Item.getCreativeTabs ( )

Gets a list of tabs that items belonging to this class can display on, combined properly with getSubItems allows for a single item to span many sub-items across many tabs.

Returns
A list of all tabs that this item could possibly be one.
int net.minecraft.item.Item.getDamage ( ItemStack  stack)

Return the itemDamage represented by this ItemStack. Defaults to the itemDamage field on ItemStack, but can be overridden here for other sources such as NBT.

Parameters
stackThe itemstack that is damaged
Returns
the damage value
int net.minecraft.item.Item.getDamageVsEntity ( Entity  par1Entity)

Returns the damage against a given entity.

int net.minecraft.item.Item.getDamageVsEntity ( Entity  par1Entity,
ItemStack  itemStack 
)

An itemstack sensitive version of getDamageVsEntity - allows items to handle damage based on itemstack data, like tags. Falls back to getDamageVsEntity.

Parameters
par1EntityThe entity being attacked (or the attacking mob, if it's a mob - vanilla bug?)
itemStackThe itemstack
Returns
the damage
int net.minecraft.item.Item.getDisplayDamage ( ItemStack  stack)

Return the itemDamage display value represented by this itemstack.

Parameters
stackthe stack
Returns
the damage value
int net.minecraft.item.Item.getEntityLifespan ( ItemStack  itemStack,
World  world 
)

Retrieves the normal 'lifespan' of this item when it is dropped on the ground as a EntityItem. This is in ticks, standard result is 6000, or 5 mins.

Parameters
itemStackThe current ItemStack
worldThe world the entity is in
Returns
The normal lifespan in ticks.
FontRenderer net.minecraft.item.Item.getFontRenderer ( ItemStack  stack)

Returns the font renderer used to render tooltips and overlays for this item. Returning null will use the standard font renderer.

Parameters
stackThe current item stack
Returns
A instance of FontRenderer or null to use default
boolean net.minecraft.item.Item.getHasSubtypes ( )
Icon net.minecraft.item.Item.getIcon ( ItemStack  stack,
int  renderPass,
EntityPlayer  player,
ItemStack  usingItem,
int  useRemaining 
)

Player, Render pass, and item usage sensitive version of getIconIndex.

Parameters
stackThe item stack to get the icon for. (Usually this, and usingItem will be the same if usingItem is not null)
renderPassThe pass to get the icon for, 0 is default.
playerThe player holding the item
usingItemThe item the player is actively using. Can be null if not using anything.
useRemainingThe ticks remaining for the active item.
Returns
The icon index
Icon net.minecraft.item.Item.getIcon ( ItemStack  stack,
int  pass 
)

Return the correct icon for rendering based on the supplied ItemStack and render pass.

Defers to getIconFromDamageForRenderPass(int, int)

Parameters
stackto render for
passthe multi-render pass
Returns
the icon
Icon net.minecraft.item.Item.getIconFromDamage ( int  par1)

Gets an icon index based on an item's damage value

Icon net.minecraft.item.Item.getIconFromDamageForRenderPass ( int  par1,
int  par2 
)

Gets an icon index based on an item's damage value and the given render pass

final Icon net.minecraft.item.Item.getIconIndex ( ItemStack  par1ItemStack)

Returns the icon index of the stack given as argument.

boolean net.minecraft.item.Item.getIsRepairable ( ItemStack  par1ItemStack,
ItemStack  par2ItemStack 
)

Return whether this item is repairable in an anvil.

int net.minecraft.item.Item.getItemDamageFromStack ( ItemStack  stack)
int net.minecraft.item.Item.getItemDamageFromStackForDisplay ( ItemStack  stack)
String net.minecraft.item.Item.getItemDisplayName ( ItemStack  par1ItemStack)
int net.minecraft.item.Item.getItemEnchantability ( )

Return the enchantability factor of the item, most of the time is based on material.

int net.minecraft.item.Item.getItemMaxDamageFromStack ( ItemStack  stack)
int net.minecraft.item.Item.getItemStackLimit ( )

Returns the maximum size of the stack for a specific item. Isn't this more a Set than a Get?

EnumAction net.minecraft.item.Item.getItemUseAction ( ItemStack  par1ItemStack)

returns the action that specifies what animation to play when the items is being used

String net.minecraft.item.Item.getLocalizedName ( ItemStack  par1ItemStack)

Gets the localized name of the given item stack.

int net.minecraft.item.Item.getMaxDamage ( )

Returns the maximum damage an item can take.

int net.minecraft.item.Item.getMaxDamage ( ItemStack  stack)

Return the maxDamage for this ItemStack. Defaults to the maxDamage field in this item, but can be overridden here for other sources such as NBT.

Parameters
stackThe itemstack that is damaged
Returns
the damage value
int net.minecraft.item.Item.getMaxItemUseDuration ( ItemStack  par1ItemStack)

How long it takes to use or consume an item

int net.minecraft.item.Item.getMetadata ( int  par1)

Returns the metadata of the block which this Item (ItemBlock) can place

MovingObjectPosition net.minecraft.item.Item.getMovingObjectPositionFromPlayer ( World  par1World,
EntityPlayer  par2EntityPlayer,
boolean  par3 
)
protected
String net.minecraft.item.Item.getPotionEffect ( )

Returns a string representing what this item does to a potion.

String net.minecraft.item.Item.getPotionEffect ( ItemStack  stack)

ItemStack sensitive version of getPotionEffect

Parameters
stackThe item stack
Returns
A string containing the bit manipulation to apply the the potion.
EnumRarity net.minecraft.item.Item.getRarity ( ItemStack  par1ItemStack)

Return an item rarity from EnumRarity

int net.minecraft.item.Item.getRenderPasses ( int  metadata)

Returns the number of render passes/layers this item has. Usually equates to ItemRenderer.renderItem being called for this many passes. Does not get called unless requiresMultipleRenderPasses() is true;

Parameters
metadataThe item's metadata
Returns
The number of passes to run.
boolean net.minecraft.item.Item.getShareTag ( )

If this function returns true (or the item is damageable), the ItemStack's NBT tag will be sent to the client.

float net.minecraft.item.Item.getSmeltingExperience ( ItemStack  item)

Determines the base experience for a player when they remove this item from a furnace slot. This number must be between 0 and 1 for it to be valid. This number will be multiplied by the stack size to get the total experience.

Parameters
itemThe item stack the player is picking up.
Returns
The amount to award for each item.
int net.minecraft.item.Item.getSpriteNumber ( )

Returns 0 for /terrain.png, 1 for /gui/items.png

String net.minecraft.item.Item.getStatName ( )
float net.minecraft.item.Item.getStrVsBlock ( ItemStack  par1ItemStack,
Block  par2Block 
)

Returns the strength of the stack against a given block. 1.0F base, (Quality+1)*2 if correct blocktype, 1.5F if sword

float net.minecraft.item.Item.getStrVsBlock ( ItemStack  itemstack,
Block  block,
int  metadata 
)

Metadata-sensitive version of getStrVsBlock

Parameters
itemstackThe Item Stack
blockThe block the item is trying to break
metadataThe items current metadata
Returns
The damage strength
void net.minecraft.item.Item.getSubItems ( int  par1,
CreativeTabs  par2CreativeTabs,
List  par3List 
)

returns a list of items with the same ID, but different meta (eg: dye returns 16 items)

String net.minecraft.item.Item.getUnlocalizedName ( )

Returns the unlocalized name of this item.

String net.minecraft.item.Item.getUnlocalizedName ( ItemStack  par1ItemStack)

Returns the unlocalized name of this item. This version accepts an ItemStack so different stacks can have different names based on their damage or NBT.

boolean net.minecraft.item.Item.hasContainerItem ( )

True if this Item has a container item (a.k.a. crafting result)

boolean net.minecraft.item.Item.hasCustomEntity ( ItemStack  stack)

Determines if this Item has a special entity for when they are in the world. Is called when a EntityItem is spawned in the world, if true and Item::createCustomEntity returns non null, the EntityItem will be destroyed and the new Entity will be added to the world.

Parameters
stackThe current item stack
Returns
True of the item has a custom entity, If true, Item::createCustomEntity will be called
boolean net.minecraft.item.Item.hasEffect ( ItemStack  par1ItemStack)
boolean net.minecraft.item.Item.hitEntity ( ItemStack  par1ItemStack,
EntityLiving  par2EntityLiving,
EntityLiving  par3EntityLiving 
)

Current implementations of this method in child classes do not use the entry argument beside ev. They just raise the damage on the stack.

boolean net.minecraft.item.Item.isBookEnchantable ( ItemStack  itemstack1,
ItemStack  itemstack2 
)

Allow or forbid the specific book/item combination as an anvil enchant

Parameters
itemstack1The item
itemstack2The book
Returns
if the enchantment is allowed
boolean net.minecraft.item.Item.isDamageable ( )
boolean net.minecraft.item.Item.isDamaged ( ItemStack  stack)

Return if this itemstack is damaged. Note only called if isDamageable() is true.

Parameters
stackthe stack
Returns
if the stack is damaged
boolean net.minecraft.item.Item.isFull3D ( )

Returns True is the item is renderer in full 3D when hold.

boolean net.minecraft.item.Item.isItemStackDamaged ( ItemStack  stack)
boolean net.minecraft.item.Item.isItemTool ( ItemStack  par1ItemStack)

Checks isDamagable and if it cannot be stacked

boolean net.minecraft.item.Item.isMap ( )

false for all Items except sub-classes of ItemMapBase

boolean net.minecraft.item.Item.isPotionIngredient ( )

Returns true if this item serves as a potion ingredient (its ingredient information is not null).

boolean net.minecraft.item.Item.isPotionIngredient ( ItemStack  stack)

ItemStack sensitive version of isPotionIngredient

Parameters
stackThe item stack
Returns
True if this stack can be used as a potion ingredient
boolean net.minecraft.item.Item.isRepairable ( )

Called by CraftingManager to determine if an item is reparable.

Returns
True if reparable
boolean net.minecraft.item.Item.isValidArmor ( ItemStack  stack,
int  armorType,
Entity  entity 
)

Determines if the specific ItemStack can be placed in the specified armor slot.

Parameters
stackThe ItemStack
armorTypeArmor slot ID: 0: Helmet, 1: Chest, 2: Legs, 3: Boots
entityThe entity trying to equip the armor
Returns
True if the given ItemStack can be inserted in the slot
boolean net.minecraft.item.Item.isValidArmor ( ItemStack  stack,
int  armorType 
)
boolean net.minecraft.item.Item.itemInteractionForEntity ( ItemStack  par1ItemStack,
EntityLiving  par2EntityLiving 
)

Called when a player right clicks an entity with an item.

void net.minecraft.item.Item.onArmorTickUpdate ( World  world,
EntityPlayer  player,
ItemStack  itemStack 
)

Called to tick armor in the armor slot. Override to do something

Parameters
world
player
itemStack
boolean net.minecraft.item.Item.onBlockDestroyed ( ItemStack  par1ItemStack,
World  par2World,
int  par3,
int  par4,
int  par5,
int  par6,
EntityLiving  par7EntityLiving 
)
boolean net.minecraft.item.Item.onBlockStartBreak ( ItemStack  itemstack,
int  X,
int  Y,
int  Z,
EntityPlayer  player 
)

Called before a block is broken. Return true to prevent default block harvesting.

Note: In SMP, this is called on both client and server sides!

Parameters
itemstackThe current ItemStack
XThe X Position
YThe X Position
ZThe X Position
playerThe Player that is wielding the item
Returns
True to prevent harvesting, false to continue as normal
void net.minecraft.item.Item.onCreated ( ItemStack  par1ItemStack,
World  par2World,
EntityPlayer  par3EntityPlayer 
)

Called when item is crafted/smelted. Used only by maps so far.

boolean net.minecraft.item.Item.onDroppedByPlayer ( ItemStack  item,
EntityPlayer  player 
)

Called when a player drops the item into the world, returning false from this will prevent the item from being removed from the players inventory and spawning in the world

Parameters
playerThe player that dropped the item
itemThe item stack, before the item is removed.
ItemStack net.minecraft.item.Item.onEaten ( ItemStack  par1ItemStack,
World  par2World,
EntityPlayer  par3EntityPlayer 
)
boolean net.minecraft.item.Item.onEntityItemUpdate ( EntityItem  entityItem)

Called by the default implemetation of EntityItem's onUpdate method, allowing for cleaner control over the update of the item without having to write a subclass.

Parameters
entityItemThe entity Item
Returns
Return true to skip any further update code.
boolean net.minecraft.item.Item.onEntitySwing ( EntityLiving  entityLiving,
ItemStack  stack 
)

Called when a entity tries to play the 'swing' animation.

Parameters
entityLivingThe entity swinging the item.
stackThe Item stack
Returns
True to cancel any further processing by EntityLiving
ItemStack net.minecraft.item.Item.onItemRightClick ( ItemStack  par1ItemStack,
World  par2World,
EntityPlayer  par3EntityPlayer 
)

Called whenever this item is equipped and the right mouse button is pressed. Args: itemStack, world, entityPlayer

boolean net.minecraft.item.Item.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. If the item does something special on right clicking, he will have one of those. Return True if something happen and false if it don't. This is for ITEMS, not BLOCKS

boolean net.minecraft.item.Item.onItemUseFirst ( ItemStack  stack,
EntityPlayer  player,
World  world,
int  x,
int  y,
int  z,
int  side,
float  hitX,
float  hitY,
float  hitZ 
)

This is called when the item is used, before the block is activated.

Parameters
stackThe Item Stack
playerThe Player that used the item
worldThe Current World
xTarget X Position
yTarget Y Position
zTarget Z Position
sideThe side of the target hit
Returns
Return true to prevent any further processing.
boolean net.minecraft.item.Item.onLeftClickEntity ( ItemStack  stack,
EntityPlayer  player,
Entity  entity 
)

Called when the player Left Clicks (attacks) an entity. Processed before damage is done, if return value is true further processing is canceled and the entity is not attacked.

Parameters
stackThe Item being used
playerThe player that is attacking
entityThe entity being attacked
Returns
True to cancel the rest of the interaction.
void net.minecraft.item.Item.onPlayerStoppedUsing ( ItemStack  par1ItemStack,
World  par2World,
EntityPlayer  par3EntityPlayer,
int  par4 
)

called when the player releases the use item button. Args: itemstack, world, entityplayer, itemInUseCount

void net.minecraft.item.Item.onUpdate ( ItemStack  par1ItemStack,
World  par2World,
Entity  par3Entity,
int  par4,
boolean  par5 
)

Called each tick as long the item is on a player inventory. Uses by maps to check if is on a player hand and update it's contents.

void net.minecraft.item.Item.onUsingItemTick ( ItemStack  stack,
EntityPlayer  player,
int  count 
)

Called each tick while using an item.

Parameters
stackThe Item being used
playerThe Player using the item
countThe amount of time in tick the item has been used for continuously
void net.minecraft.item.Item.registerIcons ( IconRegister  par1IconRegister)
void net.minecraft.item.Item.renderHelmetOverlay ( ItemStack  stack,
EntityPlayer  player,
ScaledResolution  resolution,
float  partialTicks,
boolean  hasScreen,
int  mouseX,
int  mouseY 
)

Called when the client starts rendering the HUD, for whatever item the player currently has as a helmet. This is where pumpkins would render there overlay.

Parameters
stackThe ItemStack that is equipped
playerReference to the current client entity
resolutionResolution information about the current viewport and configured GUI Scale
partialTicksPartial ticks for the renderer, useful for interpolation
hasScreenIf the player has a screen up, which will be rendered after this.
mouseXMouse's X position on screen
mouseYMouse's Y position on screen
boolean net.minecraft.item.Item.requiresMultipleRenderPasses ( )
Item net.minecraft.item.Item.setContainerItem ( Item  par1Item)
Item net.minecraft.item.Item.setCreativeTab ( CreativeTabs  par1CreativeTabs)

returns this;

void net.minecraft.item.Item.setDamage ( ItemStack  stack,
int  damage 
)

Set the damage for this itemstack. Note, this method is responsible for zero checking.

Parameters
stackthe stack
damagethe new damage value
Item net.minecraft.item.Item.setFull3D ( )

Sets bFull3D to True and return the object.

Item net.minecraft.item.Item.setHasSubtypes ( boolean  par1)
protected
void net.minecraft.item.Item.setItemDamageForStack ( ItemStack  stack,
int  damage 
)
Item net.minecraft.item.Item.setMaxDamage ( int  par1)

set max damage of an Item

Item net.minecraft.item.Item.setMaxStackSize ( int  par1)
Item net.minecraft.item.Item.setNoRepair ( )

Call to disable repair recipes.

Returns
The current Item instance
Item net.minecraft.item.Item.setPotionEffect ( String  par1Str)

Sets the string representing this item's effect on a potion when used as an ingredient.

Item net.minecraft.item.Item.setUnlocalizedName ( String  par1Str)

Sets the unlocalized name of this item to the string passed as the parameter, prefixed by "item."

boolean net.minecraft.item.Item.shouldPassSneakingClickToBlock ( World  par2World,
int  par4,
int  par5,
int  par6 
)

Should this item, when held, allow sneak-clicks to pass through to the underlying block?

Parameters
par2World
par4
par5
par6
Returns
boolean net.minecraft.item.Item.shouldRotateAroundWhenRendering ( )

Returns true if this item should be rotated by 180 degrees around the Y axis when being held in an entities hands.

Member Data Documentation

Item net.minecraft.item.Item.appleGold = (new ItemAppleGold(66, 4, 1.2F, false)).setAlwaysEdible().setPotionEffect(Potion.regeneration.id, 5, 0, 1.0F).setUnlocalizedName("appleGold")
static
Item net.minecraft.item.Item.appleRed = (new ItemFood(4, 4, 0.3F, false)).setUnlocalizedName("apple")
static
Item net.minecraft.item.Item.arrow = (new Item(6)).setUnlocalizedName("arrow").setCreativeTab(CreativeTabs.tabCombat)
static
Item net.minecraft.item.Item.axeDiamond = (new ItemAxe(23, EnumToolMaterial.EMERALD)).setUnlocalizedName("hatchetDiamond")
static
Item net.minecraft.item.Item.axeGold = (new ItemAxe(30, EnumToolMaterial.GOLD)).setUnlocalizedName("hatchetGold")
static
Item net.minecraft.item.Item.axeIron = (new ItemAxe(2, EnumToolMaterial.IRON)).setUnlocalizedName("hatchetIron")
static
Item net.minecraft.item.Item.axeStone = (new ItemAxe(19, EnumToolMaterial.STONE)).setUnlocalizedName("hatchetStone")
static
Item net.minecraft.item.Item.axeWood = (new ItemAxe(15, EnumToolMaterial.WOOD)).setUnlocalizedName("hatchetWood")
static
Item net.minecraft.item.Item.bakedPotato = (new ItemFood(137, 6, 0.6F, false)).setUnlocalizedName("potatoBaked")
static
Item net.minecraft.item.Item.bed = (new ItemBed(99)).setMaxStackSize(1).setUnlocalizedName("bed")
static
Item net.minecraft.item.Item.beefCooked = (new ItemFood(108, 8, 0.8F, true)).setUnlocalizedName("beefCooked")
static
Item net.minecraft.item.Item.beefRaw = (new ItemFood(107, 3, 0.3F, true)).setUnlocalizedName("beefRaw")
static
boolean net.minecraft.item.Item.bFull3D = false
protected

If true, render the object in full 3D, like weapons and tools.

Item net.minecraft.item.Item.blazePowder = (new Item(121)).setUnlocalizedName("blazePowder").setPotionEffect(PotionHelper.blazePowderEffect).setCreativeTab(CreativeTabs.tabBrewing)
static
Item net.minecraft.item.Item.blazeRod = (new Item(113)).setUnlocalizedName("blazeRod").setCreativeTab(CreativeTabs.tabMaterials)
static
Item net.minecraft.item.Item.boat = (new ItemBoat(77)).setUnlocalizedName("boat")
static
Item net.minecraft.item.Item.bone = (new Item(96)).setUnlocalizedName("bone").setFull3D().setCreativeTab(CreativeTabs.tabMisc)
static
Item net.minecraft.item.Item.book = (new ItemBook(84)).setUnlocalizedName("book").setCreativeTab(CreativeTabs.tabMisc)
static
ItemArmor net.minecraft.item.Item.bootsChain = (ItemArmor)(new ItemArmor(49, EnumArmorMaterial.CHAIN, 1, 3)).setUnlocalizedName("bootsChain")
static
ItemArmor net.minecraft.item.Item.bootsDiamond = (ItemArmor)(new ItemArmor(57, EnumArmorMaterial.DIAMOND, 3, 3)).setUnlocalizedName("bootsDiamond")
static
ItemArmor net.minecraft.item.Item.bootsGold = (ItemArmor)(new ItemArmor(61, EnumArmorMaterial.GOLD, 4, 3)).setUnlocalizedName("bootsGold")
static
ItemArmor net.minecraft.item.Item.bootsIron = (ItemArmor)(new ItemArmor(53, EnumArmorMaterial.IRON, 2, 3)).setUnlocalizedName("bootsIron")
static
ItemArmor net.minecraft.item.Item.bootsLeather = (ItemArmor)(new ItemArmor(45, EnumArmorMaterial.CLOTH, 0, 3)).setUnlocalizedName("bootsCloth")
static
ItemBow net.minecraft.item.Item.bow = (ItemBow)(new ItemBow(5)).setUnlocalizedName("bow")
static
Item net.minecraft.item.Item.bowlEmpty = (new Item(25)).setUnlocalizedName("bowl").setCreativeTab(CreativeTabs.tabMaterials)
static
Item net.minecraft.item.Item.bowlSoup = (new ItemSoup(26, 6)).setUnlocalizedName("mushroomStew")
static
Item net.minecraft.item.Item.bread = (new ItemFood(41, 5, 0.6F, false)).setUnlocalizedName("bread")
static
Item net.minecraft.item.Item.brewingStand = (new ItemReed(123, Block.brewingStand)).setUnlocalizedName("brewingStand").setCreativeTab(CreativeTabs.tabBrewing)
static
Item net.minecraft.item.Item.brick = (new Item(80)).setUnlocalizedName("brick").setCreativeTab(CreativeTabs.tabMaterials)
static
Item net.minecraft.item.Item.bucketEmpty = (new ItemBucket(69, 0)).setUnlocalizedName("bucket").setMaxStackSize(16)
static
Item net.minecraft.item.Item.bucketLava = (new ItemBucket(71, Block.lavaMoving.blockID)).setUnlocalizedName("bucketLava").setContainerItem(bucketEmpty)
static
Item net.minecraft.item.Item.bucketMilk = (new ItemBucketMilk(79)).setUnlocalizedName("milk").setContainerItem(bucketEmpty)
static
Item net.minecraft.item.Item.bucketWater = (new ItemBucket(70, Block.waterMoving.blockID)).setUnlocalizedName("bucketWater").setContainerItem(bucketEmpty)
static
Item net.minecraft.item.Item.cake = (new ItemReed(98, Block.cake)).setMaxStackSize(1).setUnlocalizedName("cake").setCreativeTab(CreativeTabs.tabFood)
static
boolean net.minecraft.item.Item.canRepair = true
protected

FORGE: To disable repair recipes.

Item net.minecraft.item.Item.carrot = (new ItemSeedFood(135, 4, 0.6F, Block.carrot.blockID, Block.tilledField.blockID)).setUnlocalizedName("carrots")
static
Item net.minecraft.item.Item.carrotOnAStick = (new ItemCarrotOnAStick(142)).setUnlocalizedName("carrotOnAStick")
static
Item net.minecraft.item.Item.cauldron = (new ItemReed(124, Block.cauldron)).setUnlocalizedName("cauldron").setCreativeTab(CreativeTabs.tabBrewing)
static
Item net.minecraft.item.Item.chickenCooked = (new ItemFood(110, 6, 0.6F, true)).setUnlocalizedName("chickenCooked")
static
Item net.minecraft.item.Item.chickenRaw = (new ItemFood(109, 2, 0.3F, true)).setPotionEffect(Potion.hunger.id, 30, 0, 0.3F).setUnlocalizedName("chickenRaw")
static
Item net.minecraft.item.Item.clay = (new Item(81)).setUnlocalizedName("clay").setCreativeTab(CreativeTabs.tabMaterials)
static
Item net.minecraft.item.Item.coal = (new ItemCoal(7)).setUnlocalizedName("coal")
static
Item net.minecraft.item.Item.comparator = (new ItemReed(148, Block.redstoneComparatorIdle)).setUnlocalizedName("comparator").setCreativeTab(CreativeTabs.tabRedstone)
static
Item net.minecraft.item.Item.compass = (new Item(89)).setUnlocalizedName("compass").setCreativeTab(CreativeTabs.tabTools)
static
Item net.minecraft.item.Item.cookie = (new ItemFood(101, 2, 0.1F, false)).setUnlocalizedName("cookie")
static
Item net.minecraft.item.Item.diamond = (new Item(8)).setUnlocalizedName("diamond").setCreativeTab(CreativeTabs.tabMaterials)
static
Item net.minecraft.item.Item.doorIron = (new ItemDoor(74, Material.iron)).setUnlocalizedName("doorIron")
static
Item net.minecraft.item.Item.doorWood = (new ItemDoor(68, Material.wood)).setUnlocalizedName("doorWood")
static
Item net.minecraft.item.Item.dyePowder = (new ItemDye(95)).setUnlocalizedName("dyePowder")
static
Item net.minecraft.item.Item.egg = (new ItemEgg(88)).setUnlocalizedName("egg")
static
Item net.minecraft.item.Item.emerald = (new Item(132)).setUnlocalizedName("emerald").setCreativeTab(CreativeTabs.tabMaterials)
static
ItemEmptyMap net.minecraft.item.Item.emptyMap = (ItemEmptyMap)(new ItemEmptyMap(139)).setUnlocalizedName("emptyMap")
static
ItemEnchantedBook net.minecraft.item.Item.enchantedBook = (ItemEnchantedBook)(new ItemEnchantedBook(147)).setMaxStackSize(1).setUnlocalizedName("enchantedBook")
static
Item net.minecraft.item.Item.enderPearl = (new ItemEnderPearl(112)).setUnlocalizedName("enderPearl")
static
Item net.minecraft.item.Item.expBottle = (new ItemExpBottle(128)).setUnlocalizedName("expBottle")
static

Bottle o' Enchanting. Drops between 1 and 3 experience orbs when thrown.

Item net.minecraft.item.Item.eyeOfEnder = (new ItemEnderEye(125)).setUnlocalizedName("eyeOfEnder")
static
Item net.minecraft.item.Item.feather = (new Item(32)).setUnlocalizedName("feather").setCreativeTab(CreativeTabs.tabMaterials)
static
Item net.minecraft.item.Item.fermentedSpiderEye = (new Item(120)).setUnlocalizedName("fermentedSpiderEye").setPotionEffect(PotionHelper.fermentedSpiderEyeEffect).setCreativeTab(CreativeTabs.tabBrewing)
static
Item net.minecraft.item.Item.fireballCharge = (new ItemFireball(129)).setUnlocalizedName("fireball")
static

Fire Charge. When used in a dispenser it fires a fireball similiar to a Ghast's.

Item net.minecraft.item.Item.firework = (new ItemFirework(145)).setUnlocalizedName("fireworks")
static
Item net.minecraft.item.Item.fireworkCharge = (new ItemFireworkCharge(146)).setUnlocalizedName("fireworksCharge").setCreativeTab(CreativeTabs.tabMisc)
static
Item net.minecraft.item.Item.fishCooked = (new ItemFood(94, 5, 0.6F, false)).setUnlocalizedName("fishCooked")
static
ItemFishingRod net.minecraft.item.Item.fishingRod = (ItemFishingRod)(new ItemFishingRod(90)).setUnlocalizedName("fishingRod")
static
Item net.minecraft.item.Item.fishRaw = (new ItemFood(93, 2, 0.3F, false)).setUnlocalizedName("fishRaw")
static
Item net.minecraft.item.Item.flint = (new Item(62)).setUnlocalizedName("flint").setCreativeTab(CreativeTabs.tabMaterials)
static
Item net.minecraft.item.Item.flintAndSteel = (new ItemFlintAndSteel(3)).setUnlocalizedName("flintAndSteel")
static
Item net.minecraft.item.Item.flowerPot = (new ItemReed(134, Block.flowerPot)).setUnlocalizedName("flowerPot").setCreativeTab(CreativeTabs.tabDecorations)
static
Item net.minecraft.item.Item.ghastTear = (new Item(114)).setUnlocalizedName("ghastTear").setPotionEffect(PotionHelper.ghastTearEffect).setCreativeTab(CreativeTabs.tabBrewing)
static
Item net.minecraft.item.Item.glassBottle = (new ItemGlassBottle(118)).setUnlocalizedName("glassBottle")
static
Item net.minecraft.item.Item.goldenCarrot = (new ItemFood(140, 6, 1.2F, false)).setUnlocalizedName("carrotGolden").setPotionEffect(PotionHelper.goldenCarrotEffect)
static
Item net.minecraft.item.Item.goldNugget = (new Item(115)).setUnlocalizedName("goldNugget").setCreativeTab(CreativeTabs.tabMaterials)
static
Item net.minecraft.item.Item.gunpowder = (new Item(33)).setUnlocalizedName("sulphur").setPotionEffect(PotionHelper.gunpowderEffect).setCreativeTab(CreativeTabs.tabMaterials)
static
boolean net.minecraft.item.Item.hasSubtypes = false
protected

Some items (like dyes) have multiple subtypes on same item, this is field define this behavior

ItemArmor net.minecraft.item.Item.helmetChain = (ItemArmor)(new ItemArmor(46, EnumArmorMaterial.CHAIN, 1, 0)).setUnlocalizedName("helmetChain")
static
ItemArmor net.minecraft.item.Item.helmetDiamond = (ItemArmor)(new ItemArmor(54, EnumArmorMaterial.DIAMOND, 3, 0)).setUnlocalizedName("helmetDiamond")
static
ItemArmor net.minecraft.item.Item.helmetGold = (ItemArmor)(new ItemArmor(58, EnumArmorMaterial.GOLD, 4, 0)).setUnlocalizedName("helmetGold")
static
ItemArmor net.minecraft.item.Item.helmetIron = (ItemArmor)(new ItemArmor(50, EnumArmorMaterial.IRON, 2, 0)).setUnlocalizedName("helmetIron")
static
ItemArmor net.minecraft.item.Item.helmetLeather = (ItemArmor)(new ItemArmor(42, EnumArmorMaterial.CLOTH, 0, 0)).setUnlocalizedName("helmetCloth")
static
Item net.minecraft.item.Item.hoeDiamond = (new ItemHoe(37, EnumToolMaterial.EMERALD)).setUnlocalizedName("hoeDiamond")
static
Item net.minecraft.item.Item.hoeGold = (new ItemHoe(38, EnumToolMaterial.GOLD)).setUnlocalizedName("hoeGold")
static
Item net.minecraft.item.Item.hoeIron = (new ItemHoe(36, EnumToolMaterial.IRON)).setUnlocalizedName("hoeIron")
static
Item net.minecraft.item.Item.hoeStone = (new ItemHoe(35, EnumToolMaterial.STONE)).setUnlocalizedName("hoeStone")
static
Item net.minecraft.item.Item.hoeWood = (new ItemHoe(34, EnumToolMaterial.WOOD)).setUnlocalizedName("hoeWood")
static
Item net.minecraft.item.Item.ingotGold = (new Item(10)).setUnlocalizedName("ingotGold").setCreativeTab(CreativeTabs.tabMaterials)
static
Item net.minecraft.item.Item.ingotIron = (new Item(9)).setUnlocalizedName("ingotIron").setCreativeTab(CreativeTabs.tabMaterials)
static
Item net.minecraft.item.Item.itemFrame = (new ItemHangingEntity(133, EntityItemFrame.class)).setUnlocalizedName("frame")
static
Icon net.minecraft.item.Item.itemIcon
protected

Icon index in the icons table.

final int net.minecraft.item.Item.itemID

The ID of this item.

Random net.minecraft.item.Item.itemRand = new Random()
staticprotected

The RNG used by the Item subclasses.

Item [] net.minecraft.item.Item.itemsList = new Item[32000]
static

A 32000 elements Item array.

Item net.minecraft.item.Item.leather = (new Item(78)).setUnlocalizedName("leather").setCreativeTab(CreativeTabs.tabMaterials)
static
ItemArmor net.minecraft.item.Item.legsChain = (ItemArmor)(new ItemArmor(48, EnumArmorMaterial.CHAIN, 1, 2)).setUnlocalizedName("leggingsChain")
static
ItemArmor net.minecraft.item.Item.legsDiamond = (ItemArmor)(new ItemArmor(56, EnumArmorMaterial.DIAMOND, 3, 2)).setUnlocalizedName("leggingsDiamond")
static
ItemArmor net.minecraft.item.Item.legsGold = (ItemArmor)(new ItemArmor(60, EnumArmorMaterial.GOLD, 4, 2)).setUnlocalizedName("leggingsGold")
static
ItemArmor net.minecraft.item.Item.legsIron = (ItemArmor)(new ItemArmor(52, EnumArmorMaterial.IRON, 2, 2)).setUnlocalizedName("leggingsIron")
static
ItemArmor net.minecraft.item.Item.legsLeather = (ItemArmor)(new ItemArmor(44, EnumArmorMaterial.CLOTH, 0, 2)).setUnlocalizedName("leggingsCloth")
static
Item net.minecraft.item.Item.lightStoneDust = (new Item(92)).setUnlocalizedName("yellowDust").setPotionEffect(PotionHelper.glowstoneEffect).setCreativeTab(CreativeTabs.tabMaterials)
static
Item net.minecraft.item.Item.magmaCream = (new Item(122)).setUnlocalizedName("magmaCream").setPotionEffect(PotionHelper.magmaCreamEffect).setCreativeTab(CreativeTabs.tabBrewing)
static
ItemMap net.minecraft.item.Item.map = (ItemMap)(new ItemMap(102)).setUnlocalizedName("map")
static
int net.minecraft.item.Item.maxStackSize = 64
protected

Maximum size of the stack.

Item net.minecraft.item.Item.melon = (new ItemFood(104, 2, 0.3F, false)).setUnlocalizedName("melon")
static
Item net.minecraft.item.Item.melonSeeds = (new ItemSeeds(106, Block.melonStem.blockID, Block.tilledField.blockID)).setUnlocalizedName("seeds_melon")
static
Item net.minecraft.item.Item.minecartCrate = (new ItemMinecart(86, 1)).setUnlocalizedName("minecartChest")
static
Item net.minecraft.item.Item.minecartEmpty = (new ItemMinecart(72, 0)).setUnlocalizedName("minecart")
static
Item net.minecraft.item.Item.minecartHopper = (new ItemMinecart(152, 5)).setUnlocalizedName("minecartHopper")
static
Item net.minecraft.item.Item.minecartPowered = (new ItemMinecart(87, 2)).setUnlocalizedName("minecartFurnace")
static
Item net.minecraft.item.Item.minecartTnt = (new ItemMinecart(151, 3)).setUnlocalizedName("minecartTnt")
static
Item net.minecraft.item.Item.monsterPlacer = (new ItemMonsterPlacer(127)).setUnlocalizedName("monsterPlacer")
static
Item net.minecraft.item.Item.netherQuartz = (new Item(150)).setUnlocalizedName("netherquartz").setCreativeTab(CreativeTabs.tabMaterials)
static
Item net.minecraft.item.Item.netherrackBrick = (new Item(149)).setUnlocalizedName("netherbrick").setCreativeTab(CreativeTabs.tabMaterials)
static
Item net.minecraft.item.Item.netherStalkSeeds = (new ItemSeeds(116, Block.netherStalk.blockID, Block.slowSand.blockID)).setUnlocalizedName("netherStalkSeeds").setPotionEffect("+4")
static
Item net.minecraft.item.Item.netherStar = (new ItemSimpleFoiled(143)).setUnlocalizedName("netherStar").setCreativeTab(CreativeTabs.tabMaterials)
static
Item net.minecraft.item.Item.painting = (new ItemHangingEntity(65, EntityPainting.class)).setUnlocalizedName("painting")
static
Item net.minecraft.item.Item.paper = (new Item(83)).setUnlocalizedName("paper").setCreativeTab(CreativeTabs.tabMisc)
static
Item net.minecraft.item.Item.pickaxeDiamond = (new ItemPickaxe(22, EnumToolMaterial.EMERALD)).setUnlocalizedName("pickaxeDiamond")
static
Item net.minecraft.item.Item.pickaxeGold = (new ItemPickaxe(29, EnumToolMaterial.GOLD)).setUnlocalizedName("pickaxeGold")
static
Item net.minecraft.item.Item.pickaxeIron = (new ItemPickaxe(1, EnumToolMaterial.IRON)).setUnlocalizedName("pickaxeIron")
static
Item net.minecraft.item.Item.pickaxeStone = (new ItemPickaxe(18, EnumToolMaterial.STONE)).setUnlocalizedName("pickaxeStone")
static
Item net.minecraft.item.Item.pickaxeWood = (new ItemPickaxe(14, EnumToolMaterial.WOOD)).setUnlocalizedName("pickaxeWood")
static
ItemArmor net.minecraft.item.Item.plateChain = (ItemArmor)(new ItemArmor(47, EnumArmorMaterial.CHAIN, 1, 1)).setUnlocalizedName("chestplateChain")
static
ItemArmor net.minecraft.item.Item.plateDiamond = (ItemArmor)(new ItemArmor(55, EnumArmorMaterial.DIAMOND, 3, 1)).setUnlocalizedName("chestplateDiamond")
static
ItemArmor net.minecraft.item.Item.plateGold = (ItemArmor)(new ItemArmor(59, EnumArmorMaterial.GOLD, 4, 1)).setUnlocalizedName("chestplateGold")
static
ItemArmor net.minecraft.item.Item.plateIron = (ItemArmor)(new ItemArmor(51, EnumArmorMaterial.IRON, 2, 1)).setUnlocalizedName("chestplateIron")
static
ItemArmor net.minecraft.item.Item.plateLeather = (ItemArmor)(new ItemArmor(43, EnumArmorMaterial.CLOTH, 0, 1)).setUnlocalizedName("chestplateCloth")
static
Item net.minecraft.item.Item.pocketSundial = (new Item(91)).setUnlocalizedName("clock").setCreativeTab(CreativeTabs.tabTools)
static
Item net.minecraft.item.Item.poisonousPotato = (new ItemFood(138, 2, 0.3F, false)).setPotionEffect(Potion.poison.id, 5, 0, 0.6F).setUnlocalizedName("potatoPoisonous")
static
Item net.minecraft.item.Item.porkCooked = (new ItemFood(64, 8, 0.8F, true)).setUnlocalizedName("porkchopCooked")
static
Item net.minecraft.item.Item.porkRaw = (new ItemFood(63, 3, 0.3F, true)).setUnlocalizedName("porkchopRaw")
static
Item net.minecraft.item.Item.potato = (new ItemSeedFood(136, 1, 0.3F, Block.potato.blockID, Block.tilledField.blockID)).setUnlocalizedName("potato")
static
ItemPotion net.minecraft.item.Item.potion = (ItemPotion)(new ItemPotion(117)).setUnlocalizedName("potion")
static
Item net.minecraft.item.Item.pumpkinPie = (new ItemFood(144, 8, 0.3F, false)).setUnlocalizedName("pumpkinPie").setCreativeTab(CreativeTabs.tabFood)
static
Item net.minecraft.item.Item.pumpkinSeeds = (new ItemSeeds(105, Block.pumpkinStem.blockID, Block.tilledField.blockID)).setUnlocalizedName("seeds_pumpkin")
static
Item net.minecraft.item.Item.record11 = (new ItemRecord(2010, "11")).setUnlocalizedName("record")
static
Item net.minecraft.item.Item.record13 = (new ItemRecord(2000, "13")).setUnlocalizedName("record")
static
Item net.minecraft.item.Item.recordBlocks = (new ItemRecord(2002, "blocks")).setUnlocalizedName("record")
static
Item net.minecraft.item.Item.recordCat = (new ItemRecord(2001, "cat")).setUnlocalizedName("record")
static
Item net.minecraft.item.Item.recordChirp = (new ItemRecord(2003, "chirp")).setUnlocalizedName("record")
static
Item net.minecraft.item.Item.recordFar = (new ItemRecord(2004, "far")).setUnlocalizedName("record")
static
Item net.minecraft.item.Item.recordMall = (new ItemRecord(2005, "mall")).setUnlocalizedName("record")
static
Item net.minecraft.item.Item.recordMellohi = (new ItemRecord(2006, "mellohi")).setUnlocalizedName("record")
static
Item net.minecraft.item.Item.recordStal = (new ItemRecord(2007, "stal")).setUnlocalizedName("record")
static
Item net.minecraft.item.Item.recordStrad = (new ItemRecord(2008, "strad")).setUnlocalizedName("record")
static
Item net.minecraft.item.Item.recordWait = (new ItemRecord(2011, "wait")).setUnlocalizedName("record")
static
Item net.minecraft.item.Item.recordWard = (new ItemRecord(2009, "ward")).setUnlocalizedName("record")
static
Item net.minecraft.item.Item.redstone = (new ItemRedstone(75)).setUnlocalizedName("redstone").setPotionEffect(PotionHelper.redstoneEffect)
static
Item net.minecraft.item.Item.redstoneRepeater = (new ItemReed(100, Block.redstoneRepeaterIdle)).setUnlocalizedName("diode").setCreativeTab(CreativeTabs.tabRedstone)
static
Item net.minecraft.item.Item.reed = (new ItemReed(82, Block.reed)).setUnlocalizedName("reeds").setCreativeTab(CreativeTabs.tabMaterials)
static
Item net.minecraft.item.Item.rottenFlesh = (new ItemFood(111, 4, 0.1F, true)).setPotionEffect(Potion.hunger.id, 30, 0, 0.8F).setUnlocalizedName("rottenFlesh")
static
Item net.minecraft.item.Item.saddle = (new ItemSaddle(73)).setUnlocalizedName("saddle")
static
Item net.minecraft.item.Item.seeds = (new ItemSeeds(39, Block.crops.blockID, Block.tilledField.blockID)).setUnlocalizedName("seeds")
static
ItemShears net.minecraft.item.Item.shears = (ItemShears)(new ItemShears(103)).setUnlocalizedName("shears")
static

Item introduced on 1.7 version, is a shear to cut leaves (you can keep the block) or get wool from sheeps.

Item net.minecraft.item.Item.shovelDiamond = (new ItemSpade(21, EnumToolMaterial.EMERALD)).setUnlocalizedName("shovelDiamond")
static
Item net.minecraft.item.Item.shovelGold = (new ItemSpade(28, EnumToolMaterial.GOLD)).setUnlocalizedName("shovelGold")
static
Item net.minecraft.item.Item.shovelIron = (new ItemSpade(0, EnumToolMaterial.IRON)).setUnlocalizedName("shovelIron")
static
Item net.minecraft.item.Item.shovelStone = (new ItemSpade(17, EnumToolMaterial.STONE)).setUnlocalizedName("shovelStone")
static
Item net.minecraft.item.Item.shovelWood = (new ItemSpade(13, EnumToolMaterial.WOOD)).setUnlocalizedName("shovelWood")
static
Item net.minecraft.item.Item.sign = (new ItemSign(67)).setUnlocalizedName("sign")
static
Item net.minecraft.item.Item.silk = (new ItemReed(31, Block.tripWire)).setUnlocalizedName("string").setCreativeTab(CreativeTabs.tabMaterials)
static
Item net.minecraft.item.Item.skull = (new ItemSkull(141)).setUnlocalizedName("skull")
static
Item net.minecraft.item.Item.slimeBall = (new Item(85)).setUnlocalizedName("slimeball").setCreativeTab(CreativeTabs.tabMisc)
static
Item net.minecraft.item.Item.snowball = (new ItemSnowball(76)).setUnlocalizedName("snowball")
static
Item net.minecraft.item.Item.speckledMelon = (new Item(126)).setUnlocalizedName("speckledMelon").setPotionEffect(PotionHelper.speckledMelonEffect).setCreativeTab(CreativeTabs.tabBrewing)
static
Item net.minecraft.item.Item.spiderEye = (new ItemFood(119, 2, 0.8F, false)).setPotionEffect(Potion.poison.id, 5, 0, 1.0F).setUnlocalizedName("spiderEye").setPotionEffect(PotionHelper.spiderEyeEffect)
static
Item net.minecraft.item.Item.stick = (new Item(24)).setFull3D().setUnlocalizedName("stick").setCreativeTab(CreativeTabs.tabMaterials)
static
Item net.minecraft.item.Item.sugar = (new Item(97)).setUnlocalizedName("sugar").setPotionEffect(PotionHelper.sugarEffect).setCreativeTab(CreativeTabs.tabMaterials)
static
Item net.minecraft.item.Item.swordDiamond = (new ItemSword(20, EnumToolMaterial.EMERALD)).setUnlocalizedName("swordDiamond")
static
Item net.minecraft.item.Item.swordGold = (new ItemSword(27, EnumToolMaterial.GOLD)).setUnlocalizedName("swordGold")
static
Item net.minecraft.item.Item.swordIron = (new ItemSword(11, EnumToolMaterial.IRON)).setUnlocalizedName("swordIron")
static
Item net.minecraft.item.Item.swordStone = (new ItemSword(16, EnumToolMaterial.STONE)).setUnlocalizedName("swordStone")
static
Item net.minecraft.item.Item.swordWood = (new ItemSword(12, EnumToolMaterial.WOOD)).setUnlocalizedName("swordWood")
static
Item net.minecraft.item.Item.wheat = (new Item(40)).setUnlocalizedName("wheat").setCreativeTab(CreativeTabs.tabMaterials)
static
Item net.minecraft.item.Item.writableBook = (new ItemWritableBook(130)).setUnlocalizedName("writingBook").setCreativeTab(CreativeTabs.tabMisc)
static
Item net.minecraft.item.Item.writtenBook = (new ItemEditableBook(131)).setUnlocalizedName("writtenBook")
static

The documentation for this class was generated from the following file: