RecipePageEntry.cs 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. namespace RecipeMenuCore.API
  2. {
  3. public class RecipePageEntry
  4. {
  5. /// <summary>
  6. /// The ultimate items in UltimateFore recipes or the inputs in other recipes.
  7. /// </summary>
  8. public int[] ItemIdExtension { get; protected set; }
  9. /// <summary>
  10. /// The normal item in UltimateFore recipes or the output in other recipes.
  11. /// </summary>
  12. public int ItemIdBase { get; protected set; }
  13. /// <summary>
  14. /// The MinAmount of items created from a recipe.
  15. /// </summary>
  16. public int MinAmount { get; protected set; }
  17. /// <summary>
  18. /// The MaxBonusAmount to be added to the base value.
  19. /// </summary>
  20. public int MaxBonusAmount { get; protected set; }
  21. /// <summary>
  22. /// Use to create a new RecipePageEntry.
  23. /// </summary>
  24. /// <param name="id1">The first ultimate item in UltimateFore recipes or the first input in other recipes.</param>
  25. /// <param name="id2">The second ultimate item in UltimateFore recipes or the second input in other recipes.</param>
  26. /// <param name="id3">The third ultimate item in UltimateFore recipes or the third input in other recipes.</param>
  27. /// <param name="idBase">The normal item in UltimateFore recipes or the output in other recipes.</param>
  28. /// <param name="min">The minimum amount of items created from a recipe.</param>
  29. /// <param name="maxBonus">The maximum bonus amount of items created from a recipe.</param>
  30. public RecipePageEntry(int id1, int id2, int id3, int idBase, int min = 1, int maxBonus = 0)
  31. {
  32. ItemIdExtension = new int[] { id1, id2, id3 };
  33. ItemIdBase = idBase;
  34. MinAmount = min;
  35. MaxBonusAmount = maxBonus;
  36. }
  37. }
  38. }