Package org.bukkit.inventory
Class RecipeChoice.ExactChoice
java.lang.Object
org.bukkit.inventory.RecipeChoice.ExactChoice
- All Implemented Interfaces:
Cloneable
,Predicate<ItemStack>
,RecipeChoice
- Enclosing interface:
RecipeChoice
Represents a choice that will be valid only if one of the stacks is
exactly matched (aside from stack size).
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.inventory.RecipeChoice
RecipeChoice.ExactChoice, RecipeChoice.MaterialChoice
-
Constructor Summary
ConstructorDescriptionExactChoice
(@NotNull List<ItemStack> choices) ExactChoice
(@NotNull ItemStack stack) ExactChoice
(@NotNull ItemStack... stacks) -
Method Summary
-
Constructor Details
-
ExactChoice
-
ExactChoice
-
ExactChoice
-
-
Method Details
-
getItemStack
Description copied from interface:RecipeChoice
Gets a single item stack representative of this stack choice.- Specified by:
getItemStack
in interfaceRecipeChoice
- Returns:
- a single representative item
-
getChoices
-
clone
- Specified by:
clone
in interfaceRecipeChoice
- Overrides:
clone
in classObject
-
test
- Specified by:
test
in interfacePredicate<ItemStack>
- Specified by:
test
in interfaceRecipeChoice
-
getPredicate
-
setPredicate
-
hashCode
public int hashCode() -
equals
-
toString
-
validate
- Specified by:
validate
in interfaceRecipeChoice
-