    001package net.minecraft.item.crafting;
    002
    003import net.minecraft.block.Block;
    004import net.minecraft.item.Item;
    005import net.minecraft.item.ItemStack;
    006
    007public 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)}, {Block.field_94341_cq, new ItemStack(Item.redstone, 9)}};
    014    }
    015
    016    /**
    017     * Adds the ingot recipes to the CraftingManager.
    018     */
    019    public void addRecipes(CraftingManager par1CraftingManager)
    020    {
    021        for (int i = 0; i < this.recipeItems.length; ++i)
    022        {
    023            Block block = (Block)this.recipeItems[i][0];
    024            ItemStack itemstack = (ItemStack)this.recipeItems[i][1];
    025            par1CraftingManager.addRecipe(new ItemStack(block), new Object[] {"###", "###", "###", '#', itemstack});
    026            par1CraftingManager.addRecipe(itemstack, new Object[] {"#", '#', block});
    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}