    001    package net.minecraft.src;
    002
    003    public class RecipesTools
    004    {
    005        private String[][] recipePatterns = new String[][] {{"XXX", " # ", " # "}, {"X", "#", "#"}, {"XX", "X#", " #"}, {"XX", " #", " #"}};
    006        private Object[][] recipeItems;
    007
    008        public RecipesTools()
    009        {
    010            this.recipeItems = new Object[][] {{Block.planks, Block.cobblestone, Item.ingotIron, Item.diamond, Item.ingotGold}, {Item.pickaxeWood, Item.pickaxeStone, Item.pickaxeSteel, Item.pickaxeDiamond, Item.pickaxeGold}, {Item.shovelWood, Item.shovelStone, Item.shovelSteel, Item.shovelDiamond, Item.shovelGold}, {Item.axeWood, Item.axeStone, Item.axeSteel, Item.axeDiamond, Item.axeGold}, {Item.hoeWood, Item.hoeStone, Item.hoeSteel, Item.hoeDiamond, Item.hoeGold}};
    011        }
    012
    013        /**
    014         * Adds the tool recipes to the CraftingManager.
    015         */
    016        public void addRecipes(CraftingManager par1CraftingManager)
    017        {
    018            for (int var2 = 0; var2 < this.recipeItems[0].length; ++var2)
    019            {
    020                Object var3 = this.recipeItems[0][var2];
    021
    022                for (int var4 = 0; var4 < this.recipeItems.length - 1; ++var4)
    023                {
    024                    Item var5 = (Item)this.recipeItems[var4 + 1][var2];
    025                    par1CraftingManager.addRecipe(new ItemStack(var5), new Object[] {this.recipePatterns[var4], '#', Item.stick, 'X', var3});
    026                }
    027            }
    028
    029            par1CraftingManager.addRecipe(new ItemStack(Item.shears), new Object[] {" #", "# ", '#', Item.ingotIron});
    030        }
    031    }