Class RecipeRule

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

public class RecipeRule extends Object
Represents a conditional rule in a recipe that modifies the output based on inputs.
  • Constructor Details

    • RecipeRule

      public RecipeRule()
  • Method Details

    • getTrigger

      public RecipeRule.Trigger getTrigger()
    • setTrigger

      public void setTrigger(RecipeRule.Trigger trigger)
    • setTrigger

      public void setTrigger(String triggerStr)
    • getMatcher

      public RuleMatcher getMatcher()
    • setMatcher

      public void setMatcher(RuleMatcher matcher)
    • getMatchers

      public List<RuleMatcher> getMatchers()
    • setMatchers

      public void setMatchers(List<RuleMatcher> matchers)
    • getActions

      public List<RecipeAction> getActions()
    • setActions

      public void setActions(List<RecipeAction> actions)
    • getSlotIndex

      public int getSlotIndex()
    • setSlotIndex

      public void setSlotIndex(int slotIndex)
    • getCount

      public int getCount()
    • setCount

      public void setCount(int count)
    • getProperty

      public String getProperty()
    • setProperty

      public void setProperty(String property)
    • getProperties

      public List<String> getProperties()
    • setProperties

      public void setProperties(List<String> properties)
    • evaluate

      public boolean evaluate(List<CraftingInput> inputs)
      Evaluate this rule against a list of crafting inputs.
    • evaluate

      public boolean evaluate(List<CraftingInput> inputs, Recipe recipe)
      Evaluate with recipe context.
    • toString

      public String toString()
      Overrides:
      toString in class Object