程序包 org.bukkit.inventory

# 接口 RecipeChoice

所有超级接口:
  `Cloneable`, `Predicate<ItemStack>`

所有已知实现类:
  `RecipeChoice.ExactChoice`, `RecipeChoice.MaterialChoice`

public interface RecipeChoice extends Predicate<ItemStack>, Cloneable
Represents a potential item match within a recipe. All choices within a recipe must be satisfied for it to be craftable. Choices must never be null or air. This class is not legal for implementation by plugins!

- ## 嵌套类概要

  嵌套类
  修饰符和类型
  接口
  说明
  `static class`
  `RecipeChoice.ExactChoice`
  Represents a choice that will be valid only if one of the stacks is exactly matched (aside from stack size).
  `static class`
  `RecipeChoice.MaterialChoice`
  Represents a choice of multiple matching Materials.

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@NotNull RecipeChoice`
  `clone()`
  `@NotNull ItemStack`
  `getItemStack()`
  已过时。
  for compatibility only
  `boolean`
  `test(@NotNull ItemStack itemStack)`

  ### 从接口继承的方法 java.util.function.Predicate

  `and, negate, or`

- ## 方法详细资料

  - ### getItemStack

    @Deprecated @NotNull @NotNull ItemStack getItemStack()
    已过时。
    for compatibility only
    Gets a single item stack representative of this stack choice.
    返回:
      a single representative item

  - ### clone

    @NotNull @NotNull RecipeChoice clone()

  - ### test

    boolean test(@NotNull @NotNull ItemStack itemStack)
    指定者:
      `test` 在接口中 `Predicate<ItemStack>`