    001    package net.minecraft.src;
    002
    003    public class RecipesArmor
    004    {
    005        private String[][] recipePatterns = new String[][] {{"XXX", "X X"}, {"X X", "XXX", "XXX"}, {"XXX", "X X", "X X"}, {"X X", "X X"}};
    006        private Object[][] recipeItems;
    007
    008        public RecipesArmor()
    009        {
    010            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}};
    011        }
    012
    013        /**
    014         * Adds the armor 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], 'X', var3});
    026                }
    027            }
    028        }
    029    }