Class ImbueRecipe

java.lang.Object
org.bukkit.inventory.CraftingRecipe
org.bukkit.inventory.ImbueRecipe
All Implemented Interfaces:
ComplexRecipe, Recipe, Keyed

@Experimental public class ImbueRecipe extends CraftingRecipe implements ComplexRecipe
Represents a recipe which will take an input surrounded by 8 material, with the source potion contents copied into the result.
  • Constructor Details

    • ImbueRecipe

      public ImbueRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input, @NotNull RecipeChoice material)
      Create an imbue recipe to produce a result of the specified type.
      Parameters:
      key - the unique recipe key
      result - the imbued result item
      input - the input ingredient
      material - the additional ingredient material
    • ImbueRecipe

      public ImbueRecipe(@NotNull NamespacedKey key, @NotNull Material result, @NotNull RecipeChoice input, @NotNull RecipeChoice material)
      Create an imbue recipe to produce a result of the specified type.
      Parameters:
      key - the unique recipe key
      result - the imbued result material
      input - the input ingredient
      material - the additional ingredient material
  • Method Details

    • getInput

      @NotNull public RecipeChoice getInput()
      Gets the input material, which will be imbued.
      Returns:
      the input
    • getMaterial

      @NotNull public RecipeChoice getMaterial()
      Gets the additional ingredients required to cause the imbuing.
      Returns:
      the imbuing material