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