Class ItemStackRecipeChoice
java.lang.Object
com.destroystokyo.paper.inventory.ItemStackRecipeChoice
- All Implemented Interfaces:
Cloneable
,Predicate<ItemStack>
,RecipeChoice
@Deprecated(forRemoval=true)
@ScheduledForRemoval(inVersion="1.21")
public class ItemStackRecipeChoice
extends Object
implements RecipeChoice
Deprecated, for removal: This API element is subject to removal in a future version.
Draft API
Allows crafting Items that require full matching itemstacks to complete the recipe for custom items
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.inventory.RecipeChoice
RecipeChoice.ExactChoice, RecipeChoice.MaterialChoice
-
Field Summary
-
Constructor Summary
ConstructorDescriptionItemStackRecipeChoice
(List<ItemStack> choices) Deprecated, for removal: This API element is subject to removal in a future version.ItemStackRecipeChoice
(ItemStack choices) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Gets a single item stack representative of this stack choice.boolean
Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.bukkit.inventory.RecipeChoice
validate
-
Field Details
-
choices
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
ItemStackRecipeChoice
Deprecated, for removal: This API element is subject to removal in a future version. -
ItemStackRecipeChoice
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getItemStack
Deprecated, for removal: This API element is subject to removal in a future version.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
-
clone
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
clone
in interfaceRecipeChoice
- Overrides:
clone
in classObject
-
test
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
test
in interfacePredicate<ItemStack>
- Specified by:
test
in interfaceRecipeChoice
-