public bool IsValid(Item ingredient) { for (int k = 0; k < furnaceRecipeList.Count; k++) { FurnaceRecipe i = furnaceRecipeList[k]; if (i.CheckItem(ingredient) && i.CheckQuantity(ingredient.stack)) { Recipe = i; return(true); } } return(false); }
public static void AddRecipe(FurnaceRecipe recipe) { furnaceRecipeList.Add(recipe); }