public virtual void AddRecipes(net.minecraft.src.CraftingManager craftingmanager) { for (int i = 0; i < recipeItems.Length; i++) { net.minecraft.src.Block block = (net.minecraft.src.Block)recipeItems[i][0]; net.minecraft.src.ItemStack itemstack = (net.minecraft.src.ItemStack)recipeItems[ i][1]; craftingmanager.AddRecipe(new net.minecraft.src.ItemStack(block), new object[] { "###", "###", "###", '#', itemstack }); craftingmanager.AddRecipe(itemstack, new object[] { "#", '#', block }); } }
// Referenced classes of package net.minecraft.src: // ItemStack, Item, Block, CraftingManager public virtual void AddRecipes(net.minecraft.src.CraftingManager craftingmanager) { craftingmanager.AddRecipe(new net.minecraft.src.ItemStack(net.minecraft.src.Item. MUSHROOM_SOUP), new object[] { "Y", "X", "#", 'X', net.minecraft.src.Block .BROWN_MUSHROOM, 'Y', net.minecraft.src.Block.RED_MUSHROOM, '#', net.minecraft.src.Item.BOWL }); craftingmanager.AddRecipe(new net.minecraft.src.ItemStack(net.minecraft.src.Item. MUSHROOM_SOUP), new object[] { "Y", "X", "#", 'X', net.minecraft.src.Block .RED_MUSHROOM, 'Y', net.minecraft.src.Block.BROWN_MUSHROOM, '#', net.minecraft.src.Item.BOWL }); craftingmanager.AddRecipe(new net.minecraft.src.ItemStack(net.minecraft.src.Item. COOKIE, 8), new object[] { "#X#", 'X', new net.minecraft.src.ItemStack (net.minecraft.src.Item.INK_SACK, 1, 3), '#', net.minecraft.src.Item .WHEAT }); }
// Referenced classes of package net.minecraft.src: // ItemStack, Block, CraftingManager public virtual void AddRecipes(net.minecraft.src.CraftingManager craftingmanager) { craftingmanager.AddRecipe(new net.minecraft.src.ItemStack(net.minecraft.src.Block .CHEST), new object[] { "###", "# #", "###", '#', net.minecraft.src.Block .WOOD }); craftingmanager.AddRecipe(new net.minecraft.src.ItemStack(net.minecraft.src.Block .FURNACE), new object[] { "###", "# #", "###", '#', net.minecraft.src.Block .COBBLESTONE }); craftingmanager.AddRecipe(new net.minecraft.src.ItemStack(net.minecraft.src.Block .WORKBENCH), new object[] { "##", "##", '#', net.minecraft.src.Block .WOOD }); craftingmanager.AddRecipe(new net.minecraft.src.ItemStack(net.minecraft.src.Block .SANDSTONE), new object[] { "##", "##", '#', net.minecraft.src.Block .SAND }); }
public virtual void AddRecipes(net.minecraft.src.CraftingManager craftingmanager) { for (int i = 0; i < recipeItems[0].Length; i++) { object obj = recipeItems[0][i]; for (int j = 0; j < recipeItems.Length - 1; j++) { net.minecraft.src.Item item = (net.minecraft.src.Item)recipeItems[j + 1][i]; craftingmanager.AddRecipe(new net.minecraft.src.ItemStack(item), new object[] { recipePatterns [j], '#', net.minecraft.src.Item.STICK, 'X', obj }); } } craftingmanager.AddRecipe(new net.minecraft.src.ItemStack(net.minecraft.src.Item. SHEARS), new object[] { " #", "# ", '#', net.minecraft.src.Item .IRON_INGOT }); }
public virtual void AddRecipes(net.minecraft.src.CraftingManager craftingmanager) { for (int i = 0; i < recipeItems[0].Length; i++) { object obj = recipeItems[0][i]; for (int j = 0; j < recipeItems.Length - 1; j++) { net.minecraft.src.Item item = (net.minecraft.src.Item)recipeItems[j + 1][i]; craftingmanager.AddRecipe(new net.minecraft.src.ItemStack(item), new object[] { recipePatterns [j], '#', net.minecraft.src.Item.STICK, 'X', obj }); } } craftingmanager.AddRecipe(new net.minecraft.src.ItemStack(net.minecraft.src.Item. BOW, 1), new object[] { " #X", "# X", " #X", 'X', net.minecraft.src.Item .STRING, '#', net.minecraft.src.Item.STICK }); craftingmanager.AddRecipe(new net.minecraft.src.ItemStack(net.minecraft.src.Item. ARROW, 4), new object[] { "X", "#", "Y", 'Y', net.minecraft.src.Item .FEATHER, 'X', net.minecraft.src.Item.FLINT, '#', net.minecraft.src.Item .STICK }); }