Class IngredientSlot

java.lang.Object
ke.ric.cooking.data.IngredientSlot

public class IngredientSlot extends Object
Represents an ingredient slot in a recipe. Can be REQUIRED or OPTIONAL, with multiple possible options. Has a max count for how many items can fill this slot.
  • Constructor Details

  • Method Details

    • getType

      public IngredientSlot.Type getType()
    • setType

      public void setType(IngredientSlot.Type type)
    • setType

      public void setType(String typeStr)
    • getOptions

      public List<IngredientOption> getOptions()
    • setOptions

      public void setOptions(List<IngredientOption> options)
    • getMax

      public int getMax()
    • setMax

      public void setMax(int max)
    • getMin

      public int getMin()
    • setMin

      public void setMin(int min)
    • isRequired

      public boolean isRequired()
    • isOptional

      public boolean isOptional()
    • matches

      public boolean matches(String itemId, boolean isCustom)
      Check if a given item matches any of the options in this slot.
    • matches

      public boolean matches(CraftingInput input)
      Check a full crafting input, including custom item tags.