Class RuleMatcher
java.lang.Object
ke.ric.cooking.data.RuleMatcher
A rule matcher containing one direct identity/tag or a list of alternatives.
-
Method Summary
Modifier and TypeMethodDescriptiongetItem()booleanCheck if this matcher matches the given legacy item description.booleanmatches(CraftingInput input) Check a full crafting input so tags and provider identities stay exact.booleanmatchesAny(List<CraftingInput> inputs) voidsetCustomItem(String customItem) voidsetCustomTag(String customTag) Uses the same normalization and blank-value rejection as ingredient tags.voidvoidsetItemRef(RecipeItemRef itemRef) voidsetOptions(List<IngredientOption> options) voidsetProviderItem(String providerItem) toString()voidEnforce exactly one completed matcher alternative at parser/builder boundaries.
-
Method Details
-
getItem
-
setItem
-
getCustomItem
-
setCustomItem
-
getCustomTag
-
setCustomTag
Uses the same normalization and blank-value rejection as ingredient tags. -
getProviderItem
-
setProviderItem
-
getProviderItemRef
-
getItemRef
-
setItemRef
-
getOptions
-
setOptions
-
validateDefinition
public void validateDefinition()Enforce exactly one completed matcher alternative at parser/builder boundaries. -
matches
Check if this matcher matches the given legacy item description. -
matches
Check a full crafting input so tags and provider identities stay exact. -
matchesAny
-
toString
-