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
  • Field Details

    • choices

      protected final List<ItemStack> choices
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • ItemStackRecipeChoice

      public ItemStackRecipeChoice(ItemStack choices)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • ItemStackRecipeChoice

      public ItemStackRecipeChoice(List<ItemStack> choices)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getItemStack

      public ItemStack 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 interface RecipeChoice
      Returns:
      a single representative item
    • clone

      public RecipeChoice clone()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      clone in interface RecipeChoice
      Overrides:
      clone in class Object
    • test

      public boolean test(ItemStack itemStack)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      test in interface Predicate<ItemStack>
      Specified by:
      test in interface RecipeChoice