类 StonecuttingRecipe

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

public class StonecuttingRecipe extends Object implements Recipe, Keyed
Represents a Stonecutting recipe.
  • 构造器详细资料

  • 方法详细资料

    • setInput

      Sets the input of this cooking recipe.
      参数:
      input - The input material.
      返回:
      The changed recipe, so you can chain calls.
    • getInput

      @NotNull public @NotNull ItemStack getInput()
      Get the input material.
      返回:
      The input material.
    • setInputChoice

      Sets the input of this cooking recipe.
      参数:
      input - The input choice.
      返回:
      The changed recipe, so you can chain calls.
    • getInputChoice

      @NotNull public @NotNull RecipeChoice getInputChoice()
      Get the input choice.
      返回:
      The input choice.
    • getResult

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

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

      原文:Return the namespaced identifier for this object.

      指定者:
      getKey 在接口中 Keyed
      返回:
      标识此对象的 key
    • 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.