类 StonecuttingRecipe

java.lang.Object
org.bukkit.inventory.StonecuttingRecipe
所有已实现的接口:
Recipe, Keyed

public class StonecuttingRecipe extends Object implements Recipe, Keyed
代表一个切石配方。
  • 构造器详细资料

  • 方法详细资料

    • setInput

      设置此烹饪配方的输入。
      参数:
      input - 输入材料。
      返回:
      修改后的配方,以便链式调用。

      原文:Sets the input of this cooking recipe.

    • getInput

      @NotNull public @NotNull ItemStack getInput()
      获取输入材料。
      返回:
      输入材料。

      原文:Get the input material.

    • setInputChoice

      设置此烹饪配方的输入。
      参数:
      input - 输入选择。
      返回:
      修改后的配方,以便链式调用。

      原文:Sets the input of this cooking recipe.

    • getInputChoice

      @NotNull public @NotNull RecipeChoice getInputChoice()
      获取输入选择。
      返回:
      输入选择。

      原文:Get the input choice.

    • getResult

      @NotNull public @NotNull ItemStack getResult()
      获取此配方的结果。
      指定者:
      getResult 在接口中 Recipe
      返回:
      结果物品栈。

      原文:Get the result of this recipe.

    • getKey

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

      原文:Return the namespaced identifier for this object.

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

      @NotNull public @NotNull String getGroup()
      获取此配方的分组。相同分组的配方在客户端显示时可能会被分组在一起。
      返回:
      配方分组。空字符串表示无分组。不能为 null。

      原文:Get the group of this recipe. Recipes with the same group may be grouped together when displayed in the client.

    • setGroup

      public void setGroup(@NotNull @NotNull String group)
      设置此配方的分组。相同分组的配方在客户端显示时可能会被分组在一起。
      参数:
      group - 配方分组。空字符串表示无分组。不能为 null。

      原文:Set the group of this recipe. Recipes with the same group may be grouped together when displayed in the client.