程序包 org.bukkit.inventory

# 类 SmithingRecipe

java.lang.Object
org.bukkit.inventory.SmithingRecipe

所有已实现的接口:
  `Recipe`, `Keyed`

直接已知子类:
  `SmithingTransformRecipe`, `SmithingTrimRecipe`

public class SmithingRecipe extends Object implements Recipe, Keyed
Represents a smithing recipe.

- ## 构造器概要

  构造器
  构造器
  说明
  `SmithingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice base, @NotNull RecipeChoice addition)`
  已过时。
  as of Minecraft 1.20, smithing recipes are now separated into two distinct recipe types, `SmithingTransformRecipe` and `SmithingTrimRecipe`.

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@NotNull RecipeChoice`
  `getAddition()`
  Get the addition recipe item.
  `@NotNull RecipeChoice`
  `getBase()`
  Get the base recipe item.
  `@NotNull NamespacedKey`
  `getKey()`
  返回用于此对象的命名空间标识符.
  `@NotNull ItemStack`
  `getResult()`
  得到这个配方的结果.

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

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 构造器详细资料

  - ### SmithingRecipe

    @Deprecated public SmithingRecipe(@NotNull @NotNull NamespacedKey key, @NotNull @NotNull ItemStack result, @NotNull @NotNull RecipeChoice base, @NotNull @NotNull RecipeChoice addition)
    已过时。
    as of Minecraft 1.20, smithing recipes are now separated into two distinct recipe types, `SmithingTransformRecipe` and `SmithingTrimRecipe`. This class now acts as a base class to these two classes and will do nothing when added to the server.
    Create a smithing recipe to produce the specified result ItemStack.
    参数:
      `key` - The unique recipe key
      `result` - The item you want the recipe to create.
      `base` - The base ingredient
      `addition` - The addition ingredient

- ## 方法详细资料

  - ### getBase

    @NotNull public @NotNull RecipeChoice getBase()
    Get the base recipe item.
    返回:
      base choice

  - ### getAddition

    @NotNull public @NotNull RecipeChoice getAddition()
    Get the addition recipe item.
    返回:
      addition choice

  - ### getResult

    @NotNull public @NotNull ItemStack getResult()
    从接口复制的说明: `Recipe`
    得到这个配方的结果.

    原文: Get the result of this recipe.

    指定者:
      `getResult` 在接口中 `Recipe`
    返回:
      `ItemStack`

  - ### getKey

    @NotNull public @NotNull NamespacedKey getKey()
    从接口复制的说明: `Keyed`
    返回用于此对象的命名空间标识符.

    原文:Return the namespaced identifier for this object.

    指定者:
      `getKey` 在接口中 `Keyed`
    返回:
      标识此对象的 key