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
@Deprecated public static class RecipeChoice.ExactChoice extends Object implements RecipeChoice
Deprecated.draft APIRepresents a choice that will be valid only one of the stacks is exactly matched (aside from stack size).
Only valid for shaped recipes
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.bukkit.inventory.RecipeChoice
RecipeChoice.ExactChoice, RecipeChoice.MaterialChoice
-
-
Constructor Summary
Constructors Constructor Description ExactChoice(List<ItemStack> choices)Deprecated.ExactChoice(ItemStack stack)Deprecated.ExactChoice(ItemStack... stacks)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description RecipeChoice.ExactChoiceclone()Deprecated.booleanequals(Object obj)Deprecated.List<ItemStack>getChoices()Deprecated.ItemStackgetItemStack()Deprecated.Gets a single item stack representative of this stack choice.inthashCode()Deprecated.booleantest(ItemStack t)Deprecated.StringtoString()Deprecated.
-
-
-
Method Detail
-
getItemStack
@NotNull public ItemStack 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
-
clone
@NotNull public RecipeChoice.ExactChoice clone()
Deprecated.- Specified by:
clonein interfaceRecipeChoice- Overrides:
clonein classObject
-
test
public boolean test(@NotNull ItemStack t)Deprecated.- Specified by:
testin interfacePredicate<ItemStack>- Specified by:
testin interfaceRecipeChoice
-
-