    001package net.minecraft.item.crafting;
    002
    003import net.minecraft.block.Block;
    004import net.minecraft.item.Item;
    005import net.minecraft.item.ItemStack;
    006
    007public class RecipesArmor
    008{
    009    private String[][] recipePatterns = new String[][] {{"XXX", "X X"}, {"X X", "XXX", "XXX"}, {"XXX", "X X", "X X"}, {"X X", "X X"}};
    010    private Object[][] recipeItems;
    011
    012    public RecipesArmor()
    013    {
    014        this.recipeItems = new Object[][] {{Item.leather, Block.fire, Item.ingotIron, Item.diamond, Item.ingotGold}, {Item.helmetLeather, Item.helmetChain, Item.helmetSteel, Item.helmetDiamond, Item.helmetGold}, {Item.plateLeather, Item.plateChain, Item.plateSteel, Item.plateDiamond, Item.plateGold}, {Item.legsLeather, Item.legsChain, Item.legsSteel, Item.legsDiamond, Item.legsGold}, {Item.bootsLeather, Item.bootsChain, Item.bootsSteel, Item.bootsDiamond, Item.bootsGold}};
    015    }
    016
    017    /**
    018     * Adds the armor recipes to the CraftingManager.
    019     */
    020    public void addRecipes(CraftingManager par1CraftingManager)
    021    {
    022        for (int i = 0; i < this.recipeItems[0].length; ++i)
    023        {
    024            Object object = this.recipeItems[0][i];
    025
    026            for (int j = 0; j < this.recipeItems.length - 1; ++j)
    027            {
    028                Item item = (Item)this.recipeItems[j + 1][i];
    029                par1CraftingManager.addRecipe(new ItemStack(item), new Object[] {this.recipePatterns[j], 'X', object});
    030            }
    031        }
    032    }
    033}