Class StonecuttingRecipe

java.lang.Object
org.bukkit.inventory.StonecuttingRecipe
All Implemented Interfaces:
Recipe, Keyed

public class StonecuttingRecipe extends Object implements Recipe, Keyed
Represents a Stonecutting recipe.
  • Constructor Details

  • Method Details

    • setInput

      Sets the input of this cooking recipe.
      Parameters:
      input - The input material.
      Returns:
      The changed recipe, so you can chain calls.
    • getInput

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

      Sets the input of this cooking recipe.
      Parameters:
      input - The input choice.
      Returns:
      The changed recipe, so you can chain calls.
    • getInputChoice

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

      @NotNull public @NotNull ItemStack getResult()
      Get the result of this recipe.
      Specified by:
      getResult in interface Recipe
      Returns:
      The resulting stack.
    • getKey

      @NotNull public @NotNull NamespacedKey getKey()
      Description copied from interface: Keyed
      Return the namespaced identifier for this object.
      Specified by:
      getKey in interface Keyed
      Returns:
      this object's 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.
      Returns:
      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.
      Parameters:
      group - recipe group. An empty string denotes no group. May not be null.