package net.minecraft.item.crafting; import net.minecraft.block.Block; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.ItemStack; public class RecipesIngots { private Object[][] recipeItems; private static final String __OBFID = "CL_00000089"; public RecipesIngots() { this.recipeItems = new Object[][] {{Blocks.gold_block, new ItemStack(Items.gold_ingot, 9)}, {Blocks.iron_block, new ItemStack(Items.iron_ingot, 9)}, {Blocks.diamond_block, new ItemStack(Items.diamond, 9)}, {Blocks.emerald_block, new ItemStack(Items.emerald, 9)}, {Blocks.lapis_block, new ItemStack(Items.dye, 9, 4)}, {Blocks.redstone_block, new ItemStack(Items.redstone, 9)}, {Blocks.coal_block, new ItemStack(Items.coal, 9, 0)}, {Blocks.hay_block, new ItemStack(Items.wheat, 9)}}; } /** * Adds the ingot recipes to the CraftingManager. */ public void addRecipes(CraftingManager p_77590_1_) { for (int i = 0; i < this.recipeItems.length; ++i) { Block block = (Block)this.recipeItems[i][0]; ItemStack itemstack = (ItemStack)this.recipeItems[i][1]; p_77590_1_.addRecipe(new ItemStack(block), new Object[] {"###", "###", "###", '#', itemstack}); p_77590_1_.addRecipe(itemstack, new Object[] {"#", '#', block}); } p_77590_1_.addRecipe(new ItemStack(Items.gold_ingot), new Object[] {"###", "###", "###", '#', Items.gold_nugget}); p_77590_1_.addRecipe(new ItemStack(Items.gold_nugget, 9), new Object[] {"#", '#', Items.gold_ingot}); } }