Class IngredientOption
java.lang.Object
ke.ric.cooking.data.IngredientOption
Represents a single ingredient option - either a vanilla item or custom item.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetItem()org.bukkit.MaterialGet the Material if this is a vanilla item.booleanbooleanbooleanbooleanbooleanmatches(CraftingInput input) Canonical identity is always checked before the optional addon predicate.voidsetCustomItem(String customItem) voidsetCustomTag(String customTag) voidvoidsetItemRef(RecipeItemRef itemRef) voidsetProviderItem(String providerItem) voidsetQualifier(String qualifier) toString()voidValidate a completed option at parser/builder boundaries.
-
Constructor Details
-
IngredientOption
public IngredientOption() -
IngredientOption
-
-
Method Details
-
getQualifier
-
setQualifier
-
matches
Canonical identity is always checked before the optional addon predicate. -
getItem
-
setItem
-
getCustomItem
-
setCustomItem
-
getCustomTag
-
setCustomTag
-
isCustomItem
public boolean isCustomItem() -
isVanillaItem
public boolean isVanillaItem() -
isCustomTag
public boolean isCustomTag() -
getProviderItem
-
setProviderItem
-
getProviderItemRef
-
isProviderItem
public boolean isProviderItem() -
getItemRef
-
setItemRef
-
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
-