Package org.bukkit.inventory
Class RecipeChoice.MaterialChoice
java.lang.Object
org.bukkit.inventory.RecipeChoice.MaterialChoice
- All Implemented Interfaces:
- Cloneable,- Predicate<ItemStack>,- RecipeChoice
- Enclosing interface:
- RecipeChoice
Represents a choice of multiple matching Materials.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.bukkit.inventory.RecipeChoiceRecipeChoice.ExactChoice, RecipeChoice.MaterialChoice
- 
Constructor SummaryConstructorsConstructorDescriptionMaterialChoice(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
- 
MaterialChoice
- 
MaterialChoiceConstructs a MaterialChoice with the current values of the specified tag.- Parameters:
- choices- the tag
 
- 
MaterialChoice
 
- 
- 
Method Details- 
test- Specified by:
- testin interface- Predicate<ItemStack>
- Specified by:
- testin interface- RecipeChoice
 
- 
getItemStackDescription copied from interface:RecipeChoiceGets a single item stack representative of this stack choice.- Specified by:
- getItemStackin interface- RecipeChoice
- Returns:
- a single representative item
 
- 
getChoices
- 
clone- Specified by:
- clonein interface- RecipeChoice
- Overrides:
- clonein class- Object
 
- 
hashCodepublic int hashCode()
- 
equals
- 
toString
 
-