Class BrewingRecipe

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

@Experimental public class BrewingRecipe extends Object implements Recipe, Keyed
Represents a brewing recipe.
  • Constructor Details

    • BrewingRecipe

      @Deprecated(since="26.3") public BrewingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result)
      Deprecated.
      this is for internal use only and will not create a viable recipe
      Create a brewing recipe to produce the specified result ItemStack.
      Parameters:
      key - The unique recipe key
      result - The item you want the recipe to create.
  • Method Details

    • getResult

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

      @NotNull public 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