程序包 org.bukkit.inventory

# 类 RecipeChoice.MaterialChoice

java.lang.Object
org.bukkit.inventory.RecipeChoice.MaterialChoice

所有已实现的接口:
  `Cloneable`, `Predicate<ItemStack>`, `RecipeChoice`

封闭接口:
  RecipeChoice

public static class RecipeChoice.MaterialChoice extends Object implements RecipeChoice
Represents a choice of multiple matching Materials.

- ## 嵌套类概要

  ## 从接口继承的嵌套类/接口 org.bukkit.inventory.RecipeChoice

  `RecipeChoice.ExactChoice, RecipeChoice.MaterialChoice`

- ## 构造器概要

  构造器
  构造器
  说明
  `MaterialChoice(@NotNull List<Material> choices)`
  `MaterialChoice(@NotNull Material choice)`
  `MaterialChoice(@NotNull Material... choices)`
  `MaterialChoice(@NotNull Tag<Material> choices)`
  Constructs a MaterialChoice with the current values of the specified tag.

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@NotNull RecipeChoice.MaterialChoice`
  `clone()`
  `boolean`
  `equals(Object obj)`
  `@NotNull List<Material>`
  `getChoices()`
  `@NotNull ItemStack`
  `getItemStack()`
  Gets a single item stack representative of this stack choice.
  `int`
  `hashCode()`
  `boolean`
  `test(@NotNull ItemStack t)`
  `String`
  `toString()`

  ### 从类继承的方法 java.lang.Object

  `finalize, getClass, notify, notifyAll, wait, wait, wait`

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

  `and, negate, or`

- ## 构造器详细资料

  - ### MaterialChoice

    public MaterialChoice(@NotNull @NotNull Material choice)

  - ### MaterialChoice

    public MaterialChoice(@NotNull @NotNull Material... choices)

  - ### MaterialChoice

    public MaterialChoice(@NotNull @NotNull Tag<Material> choices)
    Constructs a MaterialChoice with the current values of the specified tag.
    参数:
      `choices` - the tag

  - ### MaterialChoice

    public MaterialChoice(@NotNull @NotNull List<Material> choices)

- ## 方法详细资料

  - ### test

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

  - ### getItemStack

    @NotNull public @NotNull ItemStack getItemStack()
    从接口复制的说明: `RecipeChoice`
    Gets a single item stack representative of this stack choice.
    指定者:
      `getItemStack` 在接口中 `RecipeChoice`
    返回:
      a single representative item

  - ### getChoices

    @NotNull public @NotNull List<Material> getChoices()

  - ### clone

    @NotNull public @NotNull RecipeChoice.MaterialChoice clone()
    指定者:
      `clone` 在接口中 `RecipeChoice`
    覆盖:
      `clone` 在类中 `Object`

  - ### hashCode

    public int hashCode()
    覆盖:
      `hashCode` 在类中 `Object`

  - ### equals

    public boolean equals(Object obj)
    覆盖:
      `equals` 在类中 `Object`

  - ### toString

    public String toString()
    覆盖:
      `toString` 在类中 `Object`