Esempio n. 1
0
        public void addIngotRecipe(int itemID, int itemResult, int timer = 20)
        {
            FurnaceRecipe r1 = FurnaceRecipeManager.CreateRecipe(this);

            r1.addIngredient(itemID, 1);
            r1.setResult(itemResult, 1);
            r1.setCookTime(timer);
            r1.addRecipe();
        }
Esempio n. 2
0
        /*****************************************************************/
        /*                         TIME FOR FUN :D                       */
        /*****************************************************************/

        private FurnaceRecipe getRecipe()
        {
            if (inventory[0] != null && inventory[0].Name != "")
            {
                if (FurnaceRecipeManager.getInstance().validRecipe(inventory[0]))
                {
                    return(FurnaceRecipeManager.getInstance().GetRecipe());
                }
            }
            return(null);
        }