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(); }
/*****************************************************************/ /* 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); }