Class BrewingRecipe

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

@NullMarked public class BrewingRecipe extends Object implements Recipe, Keyed
Represents a recipe that is applicable to brewing stands.
  • Constructor Details

    • BrewingRecipe

      public BrewingRecipe(NamespacedKey key, ItemStack result, RecipeChoice input, RecipeChoice ingredient)
      Creates a new brewing recipe.
      Parameters:
      key - a unique key for the brewing recipe
      result - the resulting itemstack that will appear in the 3 bottom slots
      input - the input placed into the bottom 3 slots
      ingredient - the ingredient placed into the top slot
  • Method Details

    • getKey

      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
    • getResult

      public ItemStack getResult()
      Gets the resulting itemstack after the brew has finished.
      Specified by:
      getResult in interface Recipe
      Returns:
      the result itemstack
    • getInput

      public RecipeChoice getInput()
      Gets the input for the bottom 3 slots in the brewing stand.
      Returns:
      the bottom 3 slot ingredients
    • getIngredient

      public RecipeChoice getIngredient()
      Gets the ingredient in the top slot of the brewing stand.
      Returns:
      the top slot input