Enum Class RecipeIngredient.Matching
java.lang.Object
java.lang.Enum<RecipeIngredient.Matching>
dev.itsharshxd.zentrix.api.recipe.RecipeIngredient.Matching
- All Implemented Interfaces:
Serializable,Comparable<RecipeIngredient.Matching>,Constable
- Enclosing class:
RecipeIngredient
How an offered item is compared with an ingredient's items.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIt must be one of the items, the way Zentrix's recipe editors save them.Only its material has to be one of the items' materials.Decided by another plugin's ingredient;RecipeIngredient.options()shows what it displays as. -
Method Summary
Modifier and TypeMethodDescriptionstatic RecipeIngredient.MatchingReturns the enum constant of this class with the specified name.static RecipeIngredient.Matching[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ITEM
It must be one of the items, the way Zentrix's recipe editors save them. -
MATERIAL
Only its material has to be one of the items' materials. -
OTHER
Decided by another plugin's ingredient;RecipeIngredient.options()shows what it displays as.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-