Class RecipeChoice.MaterialChoice
java.lang.Object
org.bukkit.inventory.RecipeChoice.MaterialChoice
- All Implemented Interfaces:
Cloneable, Predicate<ItemStack>, RecipeChoice
- Enclosing interface:
RecipeChoice
@Obsolete(since="1.21.11")
public static sealed class RecipeChoice.MaterialChoice
extends Object
implements RecipeChoice
Represents a choice of multiple matching Materials.
- API Note:
- recommended to use
RecipeChoice.ItemTypeChoice
-
Nested Class Summary
Nested classes/interfaces inherited from interface RecipeChoice
RecipeChoice.ExactChoice, RecipeChoice.ItemTypeChoice, RecipeChoice.MaterialChoice -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMaterialChoice(List<Material> choices) MaterialChoice(Material choice) MaterialChoice(Material... choices) MaterialChoice(Tag<Material> choices) Constructs a MaterialChoice with the current values of the specified tag. -
Method Summary
-
Constructor Details
-
MaterialChoice
protected MaterialChoice() -
MaterialChoice
-
MaterialChoice
-
MaterialChoice
-
MaterialChoice
-
-
Method Details
-
test
-
getItemStack
Deprecated.Description copied from interface:RecipeChoiceGets a single item stack representative of this stack choice.- Specified by:
getItemStackin interfaceRecipeChoice- Returns:
- a single representative item
-
getChoices
-
clone
- Specified by:
clonein interfaceRecipeChoice- Overrides:
clonein classObject
-
hashCode
-
equals
-
toString
-
validate
- Specified by:
validatein interfaceRecipeChoice
-