Class IngredientSlot
java.lang.Object
ke.ric.cooking.data.IngredientSlot
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.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionIngredientSlot(IngredientSlot.Type type, List<IngredientOption> options) IngredientSlot(IngredientSlot.Type type, List<IngredientOption> options, int max) IngredientSlot(IngredientSlot.Type type, List<IngredientOption> options, int min, int max) -
Method Summary
Modifier and TypeMethodDescriptionintgetMax()intgetMin()getType()booleanbooleanbooleanCheck if a given item matches any of the options in this slot.booleanmatches(CraftingInput input) Check a full crafting input, including custom item tags.voidsetMax(int max) voidsetMin(int min) voidsetOptions(List<IngredientOption> options) voidvoidsetType(IngredientSlot.Type type)
-
Constructor Details
-
IngredientSlot
public IngredientSlot() -
IngredientSlot
-
IngredientSlot
-
IngredientSlot
-
-
Method Details
-
getType
-
setType
-
setType
-
getOptions
-
setOptions
-
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
Check if a given item matches any of the options in this slot. -
matches
Check a full crafting input, including custom item tags.
-