Class RecipeRule
java.lang.Object
ke.ric.cooking.data.RecipeRule
Represents a conditional rule in a recipe that modifies the output based on inputs.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluate(List<CraftingInput> inputs) Evaluate this rule against a list of crafting inputs.booleanevaluate(List<CraftingInput> inputs, Recipe recipe) Evaluate with recipe context.intgetCount()intvoidsetActions(List<RecipeAction> actions) voidsetCount(int count) voidsetMatcher(RuleMatcher matcher) voidsetMatchers(List<RuleMatcher> matchers) voidsetProperties(List<String> properties) voidsetProperty(String property) voidsetSlotIndex(int slotIndex) voidsetTrigger(String triggerStr) voidsetTrigger(RecipeRule.Trigger trigger) toString()
-
Constructor Details
-
RecipeRule
public RecipeRule()
-
-
Method Details
-
getTrigger
-
setTrigger
-
setTrigger
-
getMatcher
-
setMatcher
-
getMatchers
-
setMatchers
-
getActions
-
setActions
-
getSlotIndex
public int getSlotIndex() -
setSlotIndex
public void setSlotIndex(int slotIndex) -
getCount
public int getCount() -
setCount
public void setCount(int count) -
getProperty
-
setProperty
-
getProperties
-
setProperties
-
evaluate
Evaluate this rule against a list of crafting inputs. -
evaluate
Evaluate with recipe context. -
toString
-