Class BrewingRecipe
java.lang.Object
org.bukkit.inventory.BrewingRecipe
Represents a recipe that is applicable to brewing stands.
-
Constructor Summary
ConstructorsConstructorDescriptionBrewingRecipe(NamespacedKey key, ItemStack result, RecipeChoice input, RecipeChoice ingredient) Creates a new brewing recipe. -
Method Summary
-
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 reciperesult- the resulting itemstack that will appear in the 3 bottom slotsinput- the input placed into the bottom 3 slotsingredient- the ingredient placed into the top slot
-
-
Method Details
-
getKey
Description copied from interface:KeyedReturn the namespaced identifier for this object. -
getResult
-
getInput
Gets the input for the bottom 3 slots in the brewing stand.- Returns:
- the bottom 3 slot ingredients
-
getIngredient
Gets the ingredient in the top slot of the brewing stand.- Returns:
- the top slot input
-