/// <summary>
 /// Adds the food recipes to the CraftingManager.
 /// </summary>
 public virtual void AddRecipes(CraftingManager par1CraftingManager)
 {
     par1CraftingManager.AddShapelessRecipe(new ItemStack(Item.BowlSoup), new object[] { Block.MushroomBrown, Block.MushroomRed, Item.BowlEmpty });
     par1CraftingManager.AddRecipe(new ItemStack(Item.Cookie, 8), new object[] { "#X#", 'X', new ItemStack(Item.DyePowder, 1, 3), '#', Item.Wheat });
     par1CraftingManager.AddRecipe(new ItemStack(Block.Melon), new object[] { "MMM", "MMM", "MMM", 'M', Item.Melon });
     par1CraftingManager.AddRecipe(new ItemStack(Item.MelonSeeds), new object[] { "M", 'M', Item.Melon });
     par1CraftingManager.AddRecipe(new ItemStack(Item.PumpkinSeeds, 4), new object[] { "M", 'M', Block.Pumpkin });
     par1CraftingManager.AddShapelessRecipe(new ItemStack(Item.FermentedSpiderEye), new object[] { Item.SpiderEye, Block.MushroomBrown, Item.Sugar });
     par1CraftingManager.AddShapelessRecipe(new ItemStack(Item.SpeckledMelon), new object[] { Item.Melon, Item.GoldNugget });
     par1CraftingManager.AddShapelessRecipe(new ItemStack(Item.BlazePowder, 2), new object[] { Item.BlazeRod });
     par1CraftingManager.AddShapelessRecipe(new ItemStack(Item.MagmaCream), new object[] { Item.BlazePowder, Item.SlimeBall });
 }
 /// <summary>
 /// Adds the crafting recipes to the CraftingManager.
 /// </summary>
 public virtual void AddRecipes(CraftingManager par1CraftingManager)
 {
     par1CraftingManager.AddRecipe(new ItemStack(Block.Chest), new object[] { "###", "# #", "###", '#', Block.Planks });
     par1CraftingManager.AddRecipe(new ItemStack(Block.StoneOvenIdle), new object[] { "###", "# #", "###", '#', Block.Cobblestone });
     par1CraftingManager.AddRecipe(new ItemStack(Block.Workbench), new object[] { "##", "##", '#', Block.Planks });
     par1CraftingManager.AddRecipe(new ItemStack(Block.SandStone), new object[] { "##", "##", '#', Block.Sand });
     par1CraftingManager.AddRecipe(new ItemStack(Block.SandStone, 4, 2), new object[] { "##", "##", '#', Block.SandStone });
     par1CraftingManager.AddRecipe(new ItemStack(Block.SandStone, 1, 1), new object[] { "#", "#", '#', new ItemStack(Block.StairSingle, 1, 1) });
     par1CraftingManager.AddRecipe(new ItemStack(Block.StoneBrick, 4), new object[] { "##", "##", '#', Block.Stone });
     par1CraftingManager.AddRecipe(new ItemStack(Block.FenceIron, 16), new object[] { "###", "###", '#', Item.IngotIron });
     par1CraftingManager.AddRecipe(new ItemStack(Block.ThinGlass, 16), new object[] { "###", "###", '#', Block.Glass });
     par1CraftingManager.AddRecipe(new ItemStack(Block.RedstoneLampIdle, 1), new object[] { " R ", "RGR", " R ", 'R', Item.Redstone, 'G', Block.GlowStone });
 }
示例#3
0
        /// <summary>
        /// Adds the ingot recipes to the CraftingManager.
        /// </summary>
        //JAVA TO C# CONVERTER TODO TASK: The following line could not be converted:
        public void AddRecipes(CraftingManager par1CraftingManager)
        {
            for (int i = 0; i < recipeItems.Length; i++)
            {
                Block     block     = (Block)recipeItems[i][0];
                ItemStack itemstack = (ItemStack)recipeItems[i][1];
                par1CraftingManager.AddRecipe(new ItemStack(block), new object[] { "###", "###", "###", '#', itemstack });
                par1CraftingManager.AddRecipe(itemstack, new object[] { "#", '#', block });
            }

            par1CraftingManager.AddRecipe(new ItemStack(Item.IngotGold), new object[] { "###", "###", "###", '#', Item.GoldNugget });
            par1CraftingManager.AddRecipe(new ItemStack(Item.GoldNugget, 9), new object[] { "#", '#', Item.IngotGold });
        }
        /// <summary>
        /// Adds the tool recipes to the CraftingManager.
        /// </summary>
        public virtual void AddRecipes(CraftingManager par1CraftingManager)
        {
            for (int i = 0; i < RecipeItems[0].Length; i++)
            {
                object obj = RecipeItems[0][i];

                for (int j = 0; j < RecipeItems.Length - 1; j++)
                {
                    Item item = (Item)RecipeItems[j + 1][i];
                    par1CraftingManager.AddRecipe(new ItemStack(item), new object[] { RecipePatterns[j], '#', Item.Stick, 'X', obj });
                }
            }

            par1CraftingManager.AddRecipe(new ItemStack(Item.Shears), new object[] { " #", "# ", '#', Item.IngotIron });
        }
示例#5
0
        /// <summary>
        /// Adds the weapon recipes to the CraftingManager.
        /// </summary>
        public virtual void AddRecipes(CraftingManager par1CraftingManager)
        {
            for (int i = 0; i < RecipeItems[0].Length; i++)
            {
                object obj = RecipeItems[0][i];

                for (int j = 0; j < RecipeItems.Length - 1; j++)
                {
                    Item item = (Item)RecipeItems[j + 1][i];
                    par1CraftingManager.AddRecipe(new ItemStack(item), new object[] { RecipePatterns[j], '#', Item.Stick, 'X', obj });
                }
            }

            par1CraftingManager.AddRecipe(new ItemStack(Item.Bow, 1), new object[] { " #X", "# X", " #X", 'X', Item.Silk, '#', Item.Stick });
            par1CraftingManager.AddRecipe(new ItemStack(Item.Arrow, 4), new object[] { "X", "#", "Y", 'Y', Item.Feather, 'X', Item.Flint, '#', Item.Stick });
        }