    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            for (int var2 = 0; var2 < this.recipeItems.length; ++var2)
    018            {
    019                Block var3 = (Block)this.recipeItems[var2][0];
    020                ItemStack var4 = (ItemStack)this.recipeItems[var2][1];
    021                par1CraftingManager.addRecipe(new ItemStack(var3), new Object[] {"###", "###", "###", '#', var4});
    022                par1CraftingManager.addRecipe(var4, new Object[] {"#", '#', var3});
    023            }
    024
    025            par1CraftingManager.addRecipe(new ItemStack(Item.ingotGold), new Object[] {"###", "###", "###", '#', Item.goldNugget});
    026            par1CraftingManager.addRecipe(new ItemStack(Item.goldNugget, 9), new Object[] {"#", '#', Item.ingotGold});
    027        }
    028    }