// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode fieldsfirst
package net.minecraft.src;
import java.io.PrintStream;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
// Referenced classes of package net.minecraft.src:
// ItemStack, StatCollector, EnumAction, StringTranslate,
// EnumRarity, EntityPlayer, Vec3D, MathHelper,
// World, ItemSpade, EnumToolMaterial, ItemPickaxe,
// ItemAxe, ItemFlintAndSteel, ItemFood, ItemBow,
// ItemCoal, ItemSword, ItemSoup, PotionHelper,
// ItemHoe, ItemSeeds, Block, ItemArmor,
// EnumArmorMaterial, ItemPainting, ItemAppleGold, Potion,
// ItemSign, ItemDoor, Material, ItemBucket,
// ItemMinecart, ItemSaddle, ItemRedstone, ItemSnowball,
// ItemBoat, ItemBucketMilk, ItemReed, ItemEgg,
// ItemFishingRod, ItemDye, ItemBed, ItemMap,
// ItemShears, ItemEnderPearl, ItemPotion, ItemGlassBottle,
// ItemEnderEye, ItemRecord, StatList, EntityLiving,
// Entity, MovingObjectPosition
public class Item
{
protected static Random itemRand = new Random();
public static Item itemsList[] = new Item[32000];
public static Item shovelSteel;
public static Item pickaxeSteel;
public static Item axeSteel;
public static Item flintAndSteel = (new ItemFlintAndSteel(3)).setIconCoord(5, 0).setItemName("flintAndSteel");
public static Item appleRed = (new ItemFood(4, 4, 0.3F, false)).setIconCoord(10, 0).setItemName("apple");
public static Item bow = (new ItemBow(5)).setIconCoord(5, 1).setItemName("bow");
public static Item arrow = (new Item(6)).setIconCoord(5, 2).setItemName("arrow");
public static Item coal = (new ItemCoal(7)).setIconCoord(7, 0).setItemName("coal");
public static Item diamond = (new Item(8)).setIconCoord(7, 3).setItemName("emerald");
public static Item ingotIron = (new Item(9)).setIconCoord(7, 1).setItemName("ingotIron");
public static Item ingotGold = (new Item(10)).setIconCoord(7, 2).setItemName("ingotGold");
public static Item swordSteel;
public static Item swordWood;
public static Item shovelWood;
public static Item pickaxeWood;
public static Item axeWood;
public static Item swordStone;
public static Item shovelStone;
public static Item pickaxeStone;
public static Item axeStone;
public static Item swordDiamond;
public static Item shovelDiamond;
public static Item pickaxeDiamond;
public static Item axeDiamond;
public static Item stick = (new Item(24)).setIconCoord(5, 3).setFull3D().setItemName("stick");
public static Item bowlEmpty = (new Item(25)).setIconCoord(7, 4).setItemName("bowl");
public static Item bowlSoup = (new ItemSoup(26, 8)).setIconCoord(8, 4).setItemName("mushroomStew");
public static Item swordGold;
public static Item shovelGold;
public static Item pickaxeGold;
public static Item axeGold;
public static Item silk = (new Item(31)).setIconCoord(8, 0).setItemName("string");
public static Item feather = (new Item(32)).setIconCoord(8, 1).setItemName("feather");
public static Item gunpowder;
public static Item hoeWood;
public static Item hoeStone;
public static Item hoeSteel;
public static Item hoeDiamond;
public static Item hoeGold;
public static Item seeds;
public static Item wheat = (new Item(40)).setIconCoord(9, 1).setItemName("wheat");
public static Item bread = (new ItemFood(41, 5, 0.6F, false)).setIconCoord(9, 2).setItemName("bread");
public static Item helmetLeather;
public static Item plateLeather;
public static Item legsLeather;
public static Item bootsLeather;
public static Item helmetChain;
public static Item plateChain;
public static Item legsChain;
public static Item bootsChain;
public static Item helmetSteel;
public static Item plateSteel;
public static Item legsSteel;
public static Item bootsSteel;
public static Item helmetDiamond;
public static Item plateDiamond;
public static Item legsDiamond;
public static Item bootsDiamond;
public static Item helmetGold;
public static Item plateGold;
public static Item legsGold;
public static Item bootsGold;
public static Item flint = (new Item(62)).setIconCoord(6, 0).setItemName("flint");
public static Item porkRaw = (new ItemFood(63, 3, 0.3F, true)).setIconCoord(7, 5).setItemName("porkchopRaw");
public static Item porkCooked = (new ItemFood(64, 8, 0.8F, true)).setIconCoord(8, 5).setItemName("porkchopCooked");
public static Item painting = (new ItemPainting(65)).setIconCoord(10, 1).setItemName("painting");
public static Item appleGold;
public static Item sign = (new ItemSign(67)).setIconCoord(10, 2).setItemName("sign");
public static Item doorWood;
public static Item bucketEmpty;
public static Item bucketWater;
public static Item bucketLava;
public static Item minecartEmpty = (new ItemMinecart(72, 0)).setIconCoord(7, 8).setItemName("minecart");
public static Item saddle = (new ItemSaddle(73)).setIconCoord(8, 6).setItemName("saddle");
public static Item doorSteel;
public static Item redstone;
public static Item snowball = (new ItemSnowball(76)).setIconCoord(14, 0).setItemName("snowball");
public static Item boat = (new ItemBoat(77)).setIconCoord(8, 8).setItemName("boat");
public static Item leather = (new Item(78)).setIconCoord(7, 6).setItemName("leather");
public static Item bucketMilk;
public static Item brick = (new Item(80)).setIconCoord(6, 1).setItemName("brick");
public static Item clay = (new Item(81)).setIconCoord(9, 3).setItemName("clay");
public static Item reed;
public static Item paper = (new Item(83)).setIconCoord(10, 3).setItemName("paper");
public static Item book = (new Item(84)).setIconCoord(11, 3).setItemName("book");
public static Item slimeBall = (new Item(85)).setIconCoord(14, 1).setItemName("slimeball");
public static Item minecartCrate = (new ItemMinecart(86, 1)).setIconCoord(7, 9).setItemName("minecartChest");
public static Item minecartPowered = (new ItemMinecart(87, 2)).setIconCoord(7, 10).setItemName("minecartFurnace");
public static Item egg = (new ItemEgg(88)).setIconCoord(12, 0).setItemName("egg");
public static Item compass = (new Item(89)).setIconCoord(6, 3).setItemName("compass");
public static Item fishingRod = (new ItemFishingRod(90)).setIconCoord(5, 4).setItemName("fishingRod");
public static Item pocketSundial = (new Item(91)).setIconCoord(6, 4).setItemName("clock");
public static Item lightStoneDust;
public static Item fishRaw = (new ItemFood(93, 2, 0.3F, false)).setIconCoord(9, 5).setItemName("fishRaw");
public static Item fishCooked = (new ItemFood(94, 5, 0.6F, false)).setIconCoord(10, 5).setItemName("fishCooked");
public static Item dyePowder = (new ItemDye(95)).setIconCoord(14, 4).setItemName("dyePowder");
public static Item bone = (new Item(96)).setIconCoord(12, 1).setItemName("bone").setFull3D();
public static Item sugar;
public static Item cake;
public static Item bed = (new ItemBed(99)).setMaxStackSize(1).setIconCoord(13, 2).setItemName("bed");
public static Item redstoneRepeater;
public static Item cookie = (new ItemFood(101, 1, 0.1F, false)).setIconCoord(12, 5).setItemName("cookie");
public static ItemMap map = (ItemMap)(new ItemMap(102)).setIconCoord(12, 3).setItemName("map");
public static ItemShears shears = (ItemShears)(new ItemShears(103)).setIconCoord(13, 5).setItemName("shears");
public static Item melon = (new ItemFood(104, 2, 0.3F, false)).setIconCoord(13, 6).setItemName("melon");
public static Item pumpkinSeeds;
public static Item melonSeeds;
public static Item beefRaw = (new ItemFood(107, 3, 0.3F, true)).setIconCoord(9, 6).setItemName("beefRaw");
public static Item beefCooked = (new ItemFood(108, 8, 0.8F, true)).setIconCoord(10, 6).setItemName("beefCooked");
public static Item chickenRaw;
public static Item chickenCooked = (new ItemFood(110, 6, 0.6F, true)).setIconCoord(10, 7).setItemName("chickenCooked");
public static Item rottenFlesh;
public static Item enderPearl = (new ItemEnderPearl(112)).setIconCoord(11, 6).setItemName("enderPearl");
public static Item blazeRod = (new Item(113)).setIconCoord(12, 6).setItemName("blazeRod");
public static Item ghastTear;
public static Item goldNugget = (new Item(115)).setIconCoord(12, 7).setItemName("goldNugget");
public static Item netherStalkSeeds;
public static ItemPotion potion = (ItemPotion)(new ItemPotion(117)).setIconCoord(13, 8).setItemName("potion");
public static Item glassBottle = (new ItemGlassBottle(118)).setIconCoord(12, 8).setItemName("glassBottle");
public static Item spiderEye;
public static Item fermentedSpiderEye;
public static Item blazePowder;
public static Item magmaCream;
public static Item brewingStand;
public static Item cauldron;
public static Item eyeOfEnder = (new ItemEnderEye(125)).setIconCoord(11, 9).setItemName("eyeOfEnder");
public static Item speckledMelon;
public static Item record13 = (new ItemRecord(2000, "13")).setIconCoord(0, 15).setItemName("record");
public static Item recordCat = (new ItemRecord(2001, "cat")).setIconCoord(1, 15).setItemName("record");
public static Item recordBlocks = (new ItemRecord(2002, "blocks")).setIconCoord(2, 15).setItemName("record");
public static Item recordChirp = (new ItemRecord(2003, "chirp")).setIconCoord(3, 15).setItemName("record");
public static Item recordFar = (new ItemRecord(2004, "far")).setIconCoord(4, 15).setItemName("record");
public static Item recordMall = (new ItemRecord(2005, "mall")).setIconCoord(5, 15).setItemName("record");
public static Item recordMellohi = (new ItemRecord(2006, "mellohi")).setIconCoord(6, 15).setItemName("record");
public static Item recordStal = (new ItemRecord(2007, "stal")).setIconCoord(7, 15).setItemName("record");
public static Item recordStrad = (new ItemRecord(2008, "strad")).setIconCoord(8, 15).setItemName("record");
public static Item recordWard = (new ItemRecord(2009, "ward")).setIconCoord(9, 15).setItemName("record");
public static Item record11 = (new ItemRecord(2010, "11")).setIconCoord(10, 15).setItemName("record");
public final int shiftedIndex;
protected int maxStackSize;
private int maxDamage;
protected int iconIndex;
protected boolean bFull3D;
protected boolean hasSubtypes;
private Item containerItem;
private String field_39010_c;
private String itemName;
// FORGE: To disable repair recipes.
protected boolean canRepair=true;
protected Item(int i)
{
maxStackSize = 64;
maxDamage = 0;
bFull3D = false;
hasSubtypes = false;
containerItem = null;
field_39010_c = null;
shiftedIndex = 256 + i;
if(itemsList[256 + i] != null)
{
System.out.println((new StringBuilder()).append("CONFLICT @ ").append(i).toString());
}
itemsList[256 + i] = this;
}
public Item setIconIndex(int i)
{
iconIndex = i;
return this;
}
public Item setMaxStackSize(int i)
{
maxStackSize = i;
return this;
}
public Item setIconCoord(int i, int j)
{
iconIndex = i + j * 16;
return this;
}
public int getIconFromDamage(int i)
{
return iconIndex;
}
public final int getIconIndex(ItemStack itemstack)
{
return getIconFromDamage(itemstack.getItemDamage());
}
public boolean onItemUse(ItemStack itemstack, EntityPlayer entityplayer, World world, int i, int j, int k, int l)
{
return false;
}
public float getStrVsBlock(ItemStack itemstack, Block block)
{
return 1.0F;
}
/* FORGE: Metadata-sensitive version of getStrVsBlock
*/
public float getStrVsBlock(ItemStack itemstack, Block block, int md)
{
return getStrVsBlock(itemstack,block);
}
public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer)
{
return itemstack;
}
public ItemStack onFoodEaten(ItemStack itemstack, World world, EntityPlayer entityplayer)
{
return itemstack;
}
public int getItemStackLimit()
{
return maxStackSize;
}
public int getPlacedBlockMetadata(int i)
{
return 0;
}
public boolean getHasSubtypes()
{
return hasSubtypes;
}
protected Item setHasSubtypes(boolean flag)
{
hasSubtypes = flag;
return this;
}
public int getMaxDamage()
{
return maxDamage;
}
protected Item setMaxDamage(int i)
{
maxDamage = i;
return this;
}
public boolean isDamageable()
{
return maxDamage > 0 && !hasSubtypes;
}
/* FORGE: Called by CraftingManager to determine if an item is repairable.
*/
public boolean isRepairable() {
return canRepair && isDamageable();
}
/* FORGE: Call to disable repair recipes.
*/
public Item setNoRepair() {
canRepair=false;
return this;
}
/* FORGE: 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!
*/
//mDiyo note: This stops the block from breaking entirely.
public boolean onBlockStartBreak(ItemStack itemstack, int i, int j, int k,
EntityPlayer player) {
return false;
}
public boolean hitEntity(ItemStack itemstack, EntityLiving entityliving, EntityLiving entityliving1)
{
return false;
}
public boolean onBlockDestroyed(ItemStack itemstack, int i, int j, int k, int l, EntityLiving entityliving)
{
return false;
}
public boolean onBlockDestroyed(ItemStack itemstack, int i, int j, int k, int l, EntityLiving entityliving, int md)
{ //mDiyo add, metadata sensitive
return false;
}
public boolean canDropItems(ItemStack itemstack, int i, int j, int k, int l, EntityLiving entityliving)
{ //mDiyo add, intercept hook
return true;
}
public int getDamageVsEntity(Entity entity)
{
return 1;
}
public boolean canHarvestBlock(Block block)
{
return false;
}
public void useItemOnEntity(ItemStack itemstack, EntityLiving entityliving)
{
}
public Item setFull3D()
{
bFull3D = true;
return this;
}
public boolean isFull3D()
{
return bFull3D;
}
public boolean shouldRotateAroundWhenRendering()
{
return false;
}
public Item setItemName(String s)
{
itemName = (new StringBuilder()).append("item.").append(s).toString();
return this;
}
public String getLocalItemName(ItemStack itemstack)
{
String s = getItemNameIS(itemstack);
if(s == null)
{
return "";
} else
{
return StatCollector.translateToLocal(s);
}
}
public String getItemName()
{
return itemName;
}
public String getItemNameIS(ItemStack itemstack)
{
return itemName;
}
public Item setContainerItem(Item item)
{
if(maxStackSize > 1)
{
throw new IllegalArgumentException("Max stack size must be 1 for items with crafting results");
} else
{
containerItem = item;
return this;
}
}
public Item getContainerItem()
{
return containerItem;
}
public boolean hasContainerItem()
{
return containerItem != null;
}
public String getStatName()
{
return StatCollector.translateToLocal((new StringBuilder()).append(getItemName()).append(".name").toString());
}
public int getColorFromDamage(int i)
{
return 0xffffff;
}
public void onUpdate(ItemStack itemstack, World world, Entity entity, int i, boolean flag)
{
}
public void onCreated(ItemStack itemstack, World world, EntityPlayer entityplayer)
{
}
public EnumAction getItemUseAction(ItemStack itemstack)
{
return EnumAction.none;
}
public int getMaxItemUseDuration(ItemStack itemstack)
{
return 0;
}
public void onPlayerStoppedUsing(ItemStack itemstack, World world, EntityPlayer entityplayer, int i)
{
}
protected Item func_40407_b(String s)
{
field_39010_c = s;
return this;
}
public String func_40405_m()
{
return field_39010_c;
}
public boolean isValidBrewingIngredient()
{
return field_39010_c != null;
}
public void addInformation(ItemStack itemstack, List list)
{
}
public String getItemDisplayName(ItemStack itemstack)
{
String s = (new StringBuilder()).append("").append(StringTranslate.getInstance().translateNamedKey(getLocalItemName(itemstack))).toString().trim();
return s;
}
public boolean hasEffect(ItemStack itemstack)
{
return itemstack.func_40711_u();
}
public EnumRarity func_40398_f(ItemStack itemstack)
{
if(itemstack.func_40711_u())
{
return EnumRarity.rare;
} else
{
return EnumRarity.common;
}
}
public boolean func_40401_i(ItemStack itemstack)
{
return getItemStackLimit() == 1 && isDamageable();
}
protected MovingObjectPosition func_40402_a(World world, EntityPlayer entityplayer, boolean flag)
{
float f = 1.0F;
float f1 = entityplayer.prevRotationPitch + (entityplayer.rotationPitch - entityplayer.prevRotationPitch) * f;
float f2 = entityplayer.prevRotationYaw + (entityplayer.rotationYaw - entityplayer.prevRotationYaw) * f;
double d = entityplayer.prevPosX + (entityplayer.posX - entityplayer.prevPosX) * (double)f;
double d1 = (entityplayer.prevPosY + (entityplayer.posY - entityplayer.prevPosY) * (double)f + 1.6200000000000001D) - (double)entityplayer.yOffset;
double d2 = entityplayer.prevPosZ + (entityplayer.posZ - entityplayer.prevPosZ) * (double)f;
Vec3D vec3d = Vec3D.createVector(d, d1, d2);
float f3 = MathHelper.cos(-f2 * 0.01745329F - 3.141593F);
float f4 = MathHelper.sin(-f2 * 0.01745329F - 3.141593F);
float f5 = -MathHelper.cos(-f1 * 0.01745329F);
float f6 = MathHelper.sin(-f1 * 0.01745329F);
float f7 = f4 * f5;
float f8 = f6;
float f9 = f3 * f5;
double d3 = 5D;
Vec3D vec3d1 = vec3d.addVector((double)f7 * d3, (double)f8 * d3, (double)f9 * d3);
MovingObjectPosition movingobjectposition = world.rayTraceBlocks_do_do(vec3d, vec3d1, flag, !flag);
return movingobjectposition;
}
public int getItemEnchantability()
{
return 0;
}
/* FORGE: Called when a new CreativeContainer is opened, populate the list
* with all of the items for this item you want a player in creative mode
* to have access to.
*/
public void addCreativeItems(ArrayList itemList)
{
if (this.shiftedIndex != Item.potion.shiftedIndex)
{
itemList.add(new ItemStack(this, 1));
}
}
static
{
shovelSteel = (new ItemSpade(0, EnumToolMaterial.IRON)).setIconCoord(2, 5).setItemName("shovelIron");
pickaxeSteel = (new ItemPickaxe(1, EnumToolMaterial.IRON)).setIconCoord(2, 6).setItemName("pickaxeIron");
axeSteel = (new ItemAxe(2, EnumToolMaterial.IRON)).setIconCoord(2, 7).setItemName("hatchetIron");
swordSteel = (new ItemSword(11, EnumToolMaterial.IRON)).setIconCoord(2, 4).setItemName("swordIron");
swordWood = (new ItemSword(12, EnumToolMaterial.WOOD)).setIconCoord(0, 4).setItemName("swordWood");
shovelWood = (new ItemSpade(13, EnumToolMaterial.WOOD)).setIconCoord(0, 5).setItemName("shovelWood");
pickaxeWood = (new ItemPickaxe(14, EnumToolMaterial.WOOD)).setIconCoord(0, 6).setItemName("pickaxeWood");
axeWood = (new ItemAxe(15, EnumToolMaterial.WOOD)).setIconCoord(0, 7).setItemName("hatchetWood");
swordStone = (new ItemSword(16, EnumToolMaterial.STONE)).setIconCoord(1, 4).setItemName("swordStone");
shovelStone = (new ItemSpade(17, EnumToolMaterial.STONE)).setIconCoord(1, 5).setItemName("shovelStone");
pickaxeStone = (new ItemPickaxe(18, EnumToolMaterial.STONE)).setIconCoord(1, 6).setItemName("pickaxeStone");
axeStone = (new ItemAxe(19, EnumToolMaterial.STONE)).setIconCoord(1, 7).setItemName("hatchetStone");
swordDiamond = (new ItemSword(20, EnumToolMaterial.EMERALD)).setIconCoord(3, 4).setItemName("swordDiamond");
shovelDiamond = (new ItemSpade(21, EnumToolMaterial.EMERALD)).setIconCoord(3, 5).setItemName("shovelDiamond");
pickaxeDiamond = (new ItemPickaxe(22, EnumToolMaterial.EMERALD)).setIconCoord(3, 6).setItemName("pickaxeDiamond");
axeDiamond = (new ItemAxe(23, EnumToolMaterial.EMERALD)).setIconCoord(3, 7).setItemName("hatchetDiamond");
swordGold = (new ItemSword(27, EnumToolMaterial.GOLD)).setIconCoord(4, 4).setItemName("swordGold");
shovelGold = (new ItemSpade(28, EnumToolMaterial.GOLD)).setIconCoord(4, 5).setItemName("shovelGold");
pickaxeGold = (new ItemPickaxe(29, EnumToolMaterial.GOLD)).setIconCoord(4, 6).setItemName("pickaxeGold");
axeGold = (new ItemAxe(30, EnumToolMaterial.GOLD)).setIconCoord(4, 7).setItemName("hatchetGold");
gunpowder = (new Item(33)).setIconCoord(8, 2).setItemName("sulphur").func_40407_b(PotionHelper.field_40373_k);
hoeWood = (new ItemHoe(34, EnumToolMaterial.WOOD)).setIconCoord(0, 8).setItemName("hoeWood");
hoeStone = (new ItemHoe(35, EnumToolMaterial.STONE)).setIconCoord(1, 8).setItemName("hoeStone");
hoeSteel = (new ItemHoe(36, EnumToolMaterial.IRON)).setIconCoord(2, 8).setItemName("hoeIron");
hoeDiamond = (new ItemHoe(37, EnumToolMaterial.EMERALD)).setIconCoord(3, 8).setItemName("hoeDiamond");
hoeGold = (new ItemHoe(38, EnumToolMaterial.GOLD)).setIconCoord(4, 8).setItemName("hoeGold");
seeds = (new ItemSeeds(39, Block.crops.blockID, Block.tilledField.blockID)).setIconCoord(9, 0).setItemName("seeds");
helmetLeather = (new ItemArmor(42, EnumArmorMaterial.CLOTH, 0, 0)).setIconCoord(0, 0).setItemName("helmetCloth");
plateLeather = (new ItemArmor(43, EnumArmorMaterial.CLOTH, 0, 1)).setIconCoord(0, 1).setItemName("chestplateCloth");
legsLeather = (new ItemArmor(44, EnumArmorMaterial.CLOTH, 0, 2)).setIconCoord(0, 2).setItemName("leggingsCloth");
bootsLeather = (new ItemArmor(45, EnumArmorMaterial.CLOTH, 0, 3)).setIconCoord(0, 3).setItemName("bootsCloth");
helmetChain = (new ItemArmor(46, EnumArmorMaterial.CHAIN, 1, 0)).setIconCoord(1, 0).setItemName("helmetChain");
plateChain = (new ItemArmor(47, EnumArmorMaterial.CHAIN, 1, 1)).setIconCoord(1, 1).setItemName("chestplateChain");
legsChain = (new ItemArmor(48, EnumArmorMaterial.CHAIN, 1, 2)).setIconCoord(1, 2).setItemName("leggingsChain");
bootsChain = (new ItemArmor(49, EnumArmorMaterial.CHAIN, 1, 3)).setIconCoord(1, 3).setItemName("bootsChain");
helmetSteel = (new ItemArmor(50, EnumArmorMaterial.IRON, 2, 0)).setIconCoord(2, 0).setItemName("helmetIron");
plateSteel = (new ItemArmor(51, EnumArmorMaterial.IRON, 2, 1)).setIconCoord(2, 1).setItemName("chestplateIron");
legsSteel = (new ItemArmor(52, EnumArmorMaterial.IRON, 2, 2)).setIconCoord(2, 2).setItemName("leggingsIron");
bootsSteel = (new ItemArmor(53, EnumArmorMaterial.IRON, 2, 3)).setIconCoord(2, 3).setItemName("bootsIron");
helmetDiamond = (new ItemArmor(54, EnumArmorMaterial.DIAMOND, 3, 0)).setIconCoord(3, 0).setItemName("helmetDiamond");
plateDiamond = (new ItemArmor(55, EnumArmorMaterial.DIAMOND, 3, 1)).setIconCoord(3, 1).setItemName("chestplateDiamond");
legsDiamond = (new ItemArmor(56, EnumArmorMaterial.DIAMOND, 3, 2)).setIconCoord(3, 2).setItemName("leggingsDiamond");
bootsDiamond = (new ItemArmor(57, EnumArmorMaterial.DIAMOND, 3, 3)).setIconCoord(3, 3).setItemName("bootsDiamond");
helmetGold = (new ItemArmor(58, EnumArmorMaterial.GOLD, 4, 0)).setIconCoord(4, 0).setItemName("helmetGold");
plateGold = (new ItemArmor(59, EnumArmorMaterial.GOLD, 4, 1)).setIconCoord(4, 1).setItemName("chestplateGold");
legsGold = (new ItemArmor(60, EnumArmorMaterial.GOLD, 4, 2)).setIconCoord(4, 2).setItemName("leggingsGold");
bootsGold = (new ItemArmor(61, EnumArmorMaterial.GOLD, 4, 3)).setIconCoord(4, 3).setItemName("bootsGold");
appleGold = (new ItemAppleGold(66, 10, 1.2F, false)).setAlwaysEdible().setPotionEffect(Potion.regeneration.id, 30, 0, 1.0F).setIconCoord(11, 0).setItemName("appleGold");
doorWood = (new ItemDoor(68, Material.wood)).setIconCoord(11, 2).setItemName("doorWood");
bucketEmpty = (new ItemBucket(69, 0)).setIconCoord(10, 4).setItemName("bucket");
bucketWater = (new ItemBucket(70, Block.waterMoving.blockID)).setIconCoord(11, 4).setItemName("bucketWater").setContainerItem(bucketEmpty);
bucketLava = (new ItemBucket(71, Block.lavaMoving.blockID)).setIconCoord(12, 4).setItemName("bucketLava").setContainerItem(bucketEmpty);
doorSteel = (new ItemDoor(74, Material.iron)).setIconCoord(12, 2).setItemName("doorIron");
redstone = (new ItemRedstone(75)).setIconCoord(8, 3).setItemName("redstone").func_40407_b(PotionHelper.field_40375_i);
bucketMilk = (new ItemBucketMilk(79)).setIconCoord(13, 4).setItemName("milk").setContainerItem(bucketEmpty);
reed = (new ItemReed(82, Block.reed)).setIconCoord(11, 1).setItemName("reeds");
lightStoneDust = (new Item(92)).setIconCoord(9, 4).setItemName("yellowDust").func_40407_b(PotionHelper.field_40372_j);
sugar = (new Item(97)).setIconCoord(13, 0).setItemName("sugar").func_40407_b(PotionHelper.field_40365_B);
cake = (new ItemReed(98, Block.cake)).setMaxStackSize(1).setIconCoord(13, 1).setItemName("cake");
redstoneRepeater = (new ItemReed(100, Block.redstoneRepeaterIdle)).setIconCoord(6, 5).setItemName("diode");
pumpkinSeeds = (new ItemSeeds(105, Block.pumpkinStem.blockID, Block.tilledField.blockID)).setIconCoord(13, 3).setItemName("seeds_pumpkin");
melonSeeds = (new ItemSeeds(106, Block.melonStem.blockID, Block.tilledField.blockID)).setIconCoord(14, 3).setItemName("seeds_melon");
chickenRaw = (new ItemFood(109, 2, 0.3F, true)).setPotionEffect(Potion.hunger.id, 30, 0, 0.3F).setIconCoord(9, 7).setItemName("chickenRaw");
rottenFlesh = (new ItemFood(111, 4, 0.1F, true)).setPotionEffect(Potion.hunger.id, 30, 0, 0.8F).setIconCoord(11, 5).setItemName("rottenFlesh");
ghastTear = (new Item(114)).setIconCoord(11, 7).setItemName("ghastTear").func_40407_b(PotionHelper.field_40366_c);
netherStalkSeeds = (new ItemSeeds(116, Block.netherStalk.blockID, Block.slowSand.blockID)).setIconCoord(13, 7).setItemName("netherStalkSeeds").func_40407_b("+4");
spiderEye = (new ItemFood(119, 2, 0.8F, false)).setPotionEffect(Potion.poison.id, 5, 0, 1.0F).setIconCoord(11, 8).setItemName("spiderEye").func_40407_b(PotionHelper.field_40363_d);
fermentedSpiderEye = (new Item(120)).setIconCoord(10, 8).setItemName("fermentedSpiderEye").func_40407_b(PotionHelper.field_40364_e);
blazePowder = (new Item(121)).setIconCoord(13, 9).setItemName("blazePowder").func_40407_b(PotionHelper.field_40362_g);
magmaCream = (new Item(122)).setIconCoord(13, 10).setItemName("magmaCream").func_40407_b(PotionHelper.field_40374_h);
brewingStand = (new ItemReed(123, Block.brewingStand)).setIconCoord(12, 10).setItemName("brewingStand");
cauldron = (new ItemReed(124, Block.cauldron)).setIconCoord(12, 9).setItemName("cauldron");
speckledMelon = (new Item(126)).setIconCoord(9, 8).setItemName("speckledMelon").func_40407_b(PotionHelper.field_40361_f);
StatList.initStats();
}
}