程序包 org.bukkit.inventory

# 类 CraftingRecipe

java.lang.Object
org.bukkit.inventory.CraftingRecipe

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

直接已知子类:
  `ShapedRecipe`, `ShapelessRecipe`

public abstract class CraftingRecipe extends Object implements Recipe, Keyed
Represents a shaped or shapeless crafting recipe.

- ## 构造器概要

  构造器
  限定符
  构造器
  说明
  `protected`
  `CraftingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result)`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@NotNull CraftingBookCategory`
  `getCategory()`
  Gets the category which this recipe will appear in the recipe book under.
  `@NotNull String`
  `getGroup()`
  Get the group of this recipe.
  `@NotNull NamespacedKey`
  `getKey()`
  返回用于此对象的命名空间标识符.
  `@NotNull ItemStack`
  `getResult()`
  Get the result of this recipe.
  `void`
  `setCategory(@NotNull CraftingBookCategory category)`
  Sets the category which this recipe will appear in the recipe book under.
  `void`
  `setGroup(@NotNull String group)`
  Set the group of this recipe.

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

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

- ## 构造器详细资料

  - ### CraftingRecipe

    protected CraftingRecipe(@NotNull @NotNull NamespacedKey key, @NotNull @NotNull ItemStack result)

- ## 方法详细资料

  - ### getKey

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

    原文:Return the namespaced identifier for this object.

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

  - ### getResult

    @NotNull public @NotNull ItemStack getResult()
    Get the result of this recipe.
    指定者:
      `getResult` 在接口中 `Recipe`
    返回:
      The result stack.

  - ### getGroup

    @NotNull public @NotNull String getGroup()
    Get the group of this recipe. Recipes with the same group may be grouped together when displayed in the client.
    返回:
      recipe group. An empty string denotes no group. May not be null.

  - ### setGroup

    public void setGroup(@NotNull @NotNull String group)
    Set the group of this recipe. Recipes with the same group may be grouped together when displayed in the client.
    参数:
      `group` - recipe group. An empty string denotes no group. May not be null.

  - ### getCategory

    @NotNull public @NotNull CraftingBookCategory getCategory()
    Gets the category which this recipe will appear in the recipe book under. Defaults to `CraftingBookCategory.MISC` if not set.
    返回:
      recipe book category

  - ### setCategory

    public void setCategory(@NotNull @NotNull CraftingBookCategory category)
    Sets the category which this recipe will appear in the recipe book under. Defaults to `CraftingBookCategory.MISC` if not set.
    参数:
      `category` - recipe book category