Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
1package net.minecraft.server;
2
3public class RecipeIngots {
4
5 private Object[][] a;
6
7 public RecipeIngots() {
8 this.a = new Object[][] { { Block.GOLD_BLOCK, new ItemStack(Item.GOLD_INGOT, 9) }, { Block.IRON_BLOCK, new ItemStack(Item.IRON_INGOT, 9) }, { Block.DIAMOND_BLOCK, new ItemStack(Item.DIAMOND, 9) }, { Block.LAPIS_BLOCK, new ItemStack(Item.INK_SACK, 9, 4) } };
9 }
10
11 public void a(CraftingManager craftingmanager) {
12 for (int i = 0; i < this.a.length; ++i) {
13 Block block = (Block) this.a[i][0];
14 ItemStack itemstack = (ItemStack) this.a[i][1];
15
16 craftingmanager.registerShapedRecipe(new ItemStack(block), new Object[] { "###", "###", "###", Character.valueOf('#'), itemstack });
17 craftingmanager.registerShapedRecipe(itemstack, new Object[] { "#", Character.valueOf('#'), block });
18 }
19 }
20}