    001    package net.minecraft.item.crafting;
    002
    003    import net.minecraft.block.Block;
    004    import net.minecraft.item.Item;
    005    import net.minecraft.item.ItemStack;
    006
    007    public class RecipesIngots
    008    {
    009        private Object[][] recipeItems;
    010
    011        public RecipesIngots()
    012        {
    013            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)}};
    014        }
    015
    016        /**
    017         * Adds the ingot recipes to the CraftingManager.
    018         */
    019        public void addRecipes(CraftingManager par1CraftingManager)
    020        {
    021            for (int var2 = 0; var2 < this.recipeItems.length; ++var2)
    022            {
    023                Block var3 = (Block)this.recipeItems[var2][0];
    024                ItemStack var4 = (ItemStack)this.recipeItems[var2][1];
    025                par1CraftingManager.func_92051_a(new ItemStack(var3), new Object[] {"###", "###", "###", '#', var4});
    026                par1CraftingManager.func_92051_a(var4, new Object[] {"#", '#', var3});
    027            }
    028
    029            par1CraftingManager.func_92051_a(new ItemStack(Item.ingotGold), new Object[] {"###", "###", "###", '#', Item.goldNugget});
    030            par1CraftingManager.func_92051_a(new ItemStack(Item.goldNugget, 9), new Object[] {"#", '#', Item.ingotGold});
    031        }
    032    }