Class ImbueRecipe
java.lang.Object
org.bukkit.inventory.CraftingRecipe
org.bukkit.inventory.ImbueRecipe
- All Implemented Interfaces:
ComplexRecipe, Recipe, Keyed
Represents a recipe which will take an
input surrounded by 8
material, with the source potion contents copied into the
result.-
Constructor Summary
ConstructorsConstructorDescriptionImbueRecipe(NamespacedKey key, ItemStack result, RecipeChoice input, RecipeChoice material) Create an imbue recipe to produce a result of the specified type.ImbueRecipe(NamespacedKey key, Material result, RecipeChoice input, RecipeChoice material) Create an imbue recipe to produce a result of the specified type. -
Method Summary
Modifier and TypeMethodDescriptiongetInput()Gets the input material, which will be imbued.Gets the additional ingredients required to cause the imbuing.Methods inherited from class CraftingRecipe
checkResult, getCategory, getGroup, getKey, getResult, setCategory, setGroup
-
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 keyresult- the imbued result iteminput- the input ingredientmaterial- 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 keyresult- the imbued result materialinput- the input ingredientmaterial- the additional ingredient material
-
-
Method Details
-
getInput
Gets the input material, which will be imbued.- Returns:
- the input
-
getMaterial
Gets the additional ingredients required to cause the imbuing.- Returns:
- the imbuing material
-