namespace RecipeMenuCore.API { public class RecipePageEntry { /// /// The ultimate items in UltimateFore recipes or the inputs in other recipes. /// public int[] ItemIdExtension { get; protected set; } /// /// The normal item in UltimateFore recipes or the output in other recipes. /// public int ItemIdBase { get; protected set; } /// /// The MinAmount of items created from a recipe. /// public int MinAmount { get; protected set; } /// /// The MaxBonusAmount to be added to the base value. /// public int MaxBonusAmount { get; protected set; } /// /// Should the input be visible, if the craft has never been done before. /// public bool AllwaysShowInput { get; protected set; } /// /// Use to create a new RecipePageEntry. /// /// The first ultimate item in UltimateFore recipes or the first input in other recipes. /// The second ultimate item in UltimateFore recipes or the second input in other recipes. /// The third ultimate item in UltimateFore recipes or the third input in other recipes. /// The normal item in UltimateFore recipes or the output in other recipes. /// The minimum amount of items created from a recipe. /// The maximum bonus amount of items created from a recipe. public RecipePageEntry(int id1, int id2, int id3, int idBase, int min = 1, int maxBonus = 0) { ItemIdExtension = new int[] { id1, id2, id3 }; ItemIdBase = idBase; MinAmount = min; MaxBonusAmount = maxBonus; } /// /// Use to create a new RecipePageEntry. /// /// The first ultimate item in UltimateFore recipes or the first input in other recipes. /// The second ultimate item in UltimateFore recipes or the second input in other recipes. /// The third ultimate item in UltimateFore recipes or the third input in other recipes. /// The normal item in UltimateFore recipes or the output in other recipes. /// The minimum amount of items created from a recipe. /// The maximum bonus amount of items created from a recipe. public RecipePageEntry(int id1, int id2, int id3, int idBase, int min = 1, int maxBonus = 0, bool allwaysShowInput = false) { ItemIdExtension = new int[] { id1, id2, id3 }; ItemIdBase = idBase; MinAmount = min; MaxBonusAmount = maxBonus; AllwaysShowInput = allwaysShowInput; } } }