Beispiel #1
0
        public void addRecipes(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++)
                {
                    var item = (Item) recipeItems[j + 1][i];
                    craftingmanager.addRecipe(new ItemStack(item), new[]
                                                                   {
                                                                       recipePatterns[j], Character.valueOf('#'),
                                                                       Item.stick, Character.valueOf('X'), obj
                                                                   });
                }
            }

            craftingmanager.addRecipe(new ItemStack(Item.bow, 1), new object[]
                                                                  {
                                                                      " #X", "# X", " #X", Character.valueOf('X'),
                                                                      Item.silk, Character.valueOf('#'), Item.stick
                                                                  });
            craftingmanager.addRecipe(new ItemStack(Item.arrow, 4), new object[]
                                                                    {
                                                                        "X", "#", "Y", Character.valueOf('Y'),
                                                                        Item.feather, Character.valueOf('X'), Item.flint
                                                                        , Character.valueOf('#'), Item.stick
                                                                    });
        }
Beispiel #2
0
        public void addRecipes(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++)
                {
                    var item = (Item)recipeItems[j + 1][i];
                    craftingmanager.addRecipe(new ItemStack(item), new[]
                    {
                        recipePatterns[j], Character.valueOf('#'),
                        Item.stick, Character.valueOf('X'), obj
                    });
                }
            }

            craftingmanager.addRecipe(new ItemStack(Item.bow, 1), new object[]
            {
                " #X", "# X", " #X", Character.valueOf('X'),
                Item.silk, Character.valueOf('#'), Item.stick
            });
            craftingmanager.addRecipe(new ItemStack(Item.arrow, 4), new object[]
            {
                "X", "#", "Y", Character.valueOf('Y'),
                Item.feather, Character.valueOf('X'), Item.flint
                , Character.valueOf('#'), Item.stick
            });
        }
Beispiel #3
0
 public void addRecipes(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++)
         {
             var item = (Item)recipeItems[j + 1][i];
             craftingmanager.addRecipe(new ItemStack(item), new[]
             {
                 recipePatterns[j], Character.valueOf('X'), obj
             });
         }
     }
 }
Beispiel #4
0
 public void addRecipes(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++)
         {
             var item = (Item) recipeItems[j + 1][i];
             craftingmanager.addRecipe(new ItemStack(item), new[]
                                                            {
                                                                recipePatterns[j], Character.valueOf('X'), obj
                                                            });
         }
     }
 }
Beispiel #5
0
 public void addRecipes(CraftingManager craftingmanager)
 {
     for (int i = 0; i < recipeItems.Length; i++)
     {
         var block = (Block) recipeItems[i][0];
         var itemstack = (ItemStack) recipeItems[i][1];
         craftingmanager.addRecipe(new ItemStack(block), new object[]
                                                         {
                                                             "###", "###", "###", Character.valueOf('#'),
                                                             itemstack
                                                         });
         craftingmanager.addRecipe(itemstack, new object[]
                                              {
                                                  "#", Character.valueOf('#'), block
                                              });
     }
 }
Beispiel #6
0
 public void addRecipes(CraftingManager craftingmanager)
 {
     craftingmanager.addRecipe(new ItemStack(Item.bowlSoup), new object[]
     {
         "Y", "X", "#", Character.valueOf('X'),
         Block.mushroomBrown, Character.valueOf('Y'),
         Block.mushroomRed, Character.valueOf('#'),
         Item.bowlEmpty
     });
     craftingmanager.addRecipe(new ItemStack(Item.bowlSoup), new object[]
     {
         "Y", "X", "#", Character.valueOf('X'),
         Block.mushroomRed, Character.valueOf('Y'),
         Block.mushroomBrown, Character.valueOf('#'),
         Item.bowlEmpty
     });
 }
Beispiel #7
0
 public void addRecipes(CraftingManager craftingmanager)
 {
     for (int i = 0; i < recipeItems.Length; i++)
     {
         var block     = (Block)recipeItems[i][0];
         var itemstack = (ItemStack)recipeItems[i][1];
         craftingmanager.addRecipe(new ItemStack(block), new object[]
         {
             "###", "###", "###", Character.valueOf('#'),
             itemstack
         });
         craftingmanager.addRecipe(itemstack, new object[]
         {
             "#", Character.valueOf('#'), block
         });
     }
 }
Beispiel #8
0
 public void addRecipes(CraftingManager craftingmanager)
 {
     craftingmanager.addRecipe(new ItemStack(Block.crate), new object[]
     {
         "###", "# #", "###", Character.valueOf('#'),
         Block.planks
     });
     craftingmanager.addRecipe(new ItemStack(Block.stoneOvenIdle), new object[]
     {
         "###", "# #", "###",
         Character.valueOf('#'), Block.cobblestone
     });
     craftingmanager.addRecipe(new ItemStack(Block.workbench), new object[]
     {
         "##", "##", Character.valueOf('#'),
         Block.planks
     });
     craftingmanager.addRecipe(new ItemStack(Block.sandStone), new object[]
     {
         "##", "##", Character.valueOf('#'), Block.sand
     });
 }
Beispiel #9
0
 public void addRecipes(CraftingManager craftingmanager)
 {
     craftingmanager.addRecipe(new ItemStack(Block.crate), new object[]
                                                           {
                                                               "###", "# #", "###", Character.valueOf('#'),
                                                               Block.planks
                                                           });
     craftingmanager.addRecipe(new ItemStack(Block.stoneOvenIdle), new object[]
                                                                   {
                                                                       "###", "# #", "###",
                                                                       Character.valueOf('#'), Block.cobblestone
                                                                   });
     craftingmanager.addRecipe(new ItemStack(Block.workbench), new object[]
                                                               {
                                                                   "##", "##", Character.valueOf('#'),
                                                                   Block.planks
                                                               });
     craftingmanager.addRecipe(new ItemStack(Block.sandStone), new object[]
                                                               {
                                                                   "##", "##", Character.valueOf('#'), Block.sand
                                                               });
 }
Beispiel #10
0
        private CraftingManager craftingManager; /* synthetic field */

        public RecipeSorter(CraftingManager craftingmanager)
        {
            craftingManager = craftingmanager;
//
        }
Beispiel #11
0
        private CraftingManager craftingManager; /* synthetic field */

        #endregion Fields

        #region Constructors

        public RecipeSorter(CraftingManager craftingmanager)
        {
            craftingManager = craftingmanager;
            //
        }