Class IngredientOption

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

public class IngredientOption extends Object
Represents a single ingredient option - either a vanilla item or custom item.
  • Constructor Details

    • IngredientOption

      public IngredientOption()
    • IngredientOption

      public IngredientOption(String item, String customItem)
  • Method Details

    • getQualifier

      public String getQualifier()
    • setQualifier

      public void setQualifier(String qualifier)
    • matches

      public boolean matches(CraftingInput input)
      Canonical identity is always checked before the optional addon predicate.
    • getItem

      public String getItem()
    • setItem

      public void setItem(String item)
    • getCustomItem

      public String getCustomItem()
    • setCustomItem

      public void setCustomItem(String customItem)
    • getCustomTag

      public String getCustomTag()
    • setCustomTag

      public void setCustomTag(String customTag)
    • isCustomItem

      public boolean isCustomItem()
    • isVanillaItem

      public boolean isVanillaItem()
    • isCustomTag

      public boolean isCustomTag()
    • getProviderItem

      public String getProviderItem()
    • setProviderItem

      public void setProviderItem(String providerItem)
    • getProviderItemRef

      public ProviderItemRef getProviderItemRef()
    • isProviderItem

      public boolean isProviderItem()
    • getItemRef

      public RecipeItemRef getItemRef()
    • setItemRef

      public void setItemRef(RecipeItemRef itemRef)
    • validateDefinition

      public void validateDefinition()
      Validate a completed option at parser/builder boundaries.
    • getMaterial

      public org.bukkit.Material getMaterial()
      Get the Material if this is a vanilla item.
    • toString

      public String toString()
      Overrides:
      toString in class Object