    001    package net.minecraft.src;
    002
    003    public class RecipesIngots
    004    {
    005        private Object[][] recipeItems;
    006
    007        public RecipesIngots()
    008        {
    009            this.recipeItems = new Object[][] {{Block.blockGold, new ItemStack(Item.ingotGold, 9)}, {Block.blockSteel, new ItemStack(Item.ingotIron, 9)}, {Block.blockDiamond, new ItemStack(Item.diamond, 9)}, {Block.blockEmerald, new ItemStack(Item.emerald, 9)}, {Block.blockLapis, new ItemStack(Item.dyePowder, 9, 4)}};
    010        }
    011
    012        /**
    013         * Adds the ingot recipes to the CraftingManager.
    014         */
    015        public void addRecipes(CraftingManager par1CraftingManager)
    016        {
    017            Object[][] var2 = this.recipeItems;
    018            int var3 = var2.length;
    019
    020            for (int var4 = 0; var4 < var3; ++var4)
    021            {
    022                Object[] var5 = var2[var4];
    023                Block var6 = (Block)var5[0];
    024                ItemStack var7 = (ItemStack)var5[1];
    025                par1CraftingManager.addRecipe(new ItemStack(var6), new Object[] {"###", "###", "###", '#', var7});
    026                par1CraftingManager.addRecipe(var7, new Object[] {"#", '#', var6});
    027            }
    028
    029            par1CraftingManager.addRecipe(new ItemStack(Item.ingotGold), new Object[] {"###", "###", "###", '#', Item.goldNugget});
    030            par1CraftingManager.addRecipe(new ItemStack(Item.goldNugget, 9), new Object[] {"#", '#', Item.ingotGold});
    031        }
    032    }