Package org.bukkit.inventory
Class TransmuteRecipe
java.lang.Object
org.bukkit.inventory.CraftingRecipe
org.bukkit.inventory.TransmuteRecipe
- All Implemented Interfaces:
ComplexRecipe
,Recipe
,Keyed
Represents a recipe which will change the type of the input material when
combined with an additional material, but preserve all custom data. Only the
item type of the result stack will be used.
Used for dyeing shulker boxes in Vanilla.
Used for dyeing shulker boxes in Vanilla.
-
Constructor Summary
ConstructorDescriptionTransmuteRecipe
(NamespacedKey key, Material result, RecipeChoice input, RecipeChoice material) Create a transmute recipe to produce a result of the specified type. -
Method Summary
Modifier and TypeMethodDescriptiongetInput()
Gets the input material, which will be transmuted.Gets the additional material required to cause the transmutation.Methods inherited from class org.bukkit.inventory.CraftingRecipe
checkResult, getCategory, getGroup, getKey, getResult, setCategory, setGroup
-
Constructor Details
-
TransmuteRecipe
public TransmuteRecipe(@NotNull NamespacedKey key, @NotNull Material result, @NotNull RecipeChoice input, @NotNull RecipeChoice material) Create a transmute recipe to produce a result of the specified type.- Parameters:
key
- the unique recipe keyresult
- the transmuted result materialinput
- the input ingredientmaterial
- the additional ingredient
-
-
Method Details
-
getInput
Gets the input material, which will be transmuted.- Returns:
- the input from transmutation
-
getMaterial
Gets the additional material required to cause the transmutation.- Returns:
- the ingredient material
-