Package org.bukkit.inventory
Class TransmuteRecipe
java.lang.Object
org.bukkit.inventory.CraftingRecipe
org.bukkit.inventory.TransmuteRecipe
- All Implemented Interfaces:
- Keyed,- 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 SummaryConstructorsConstructorDescriptionTransmuteRecipe(@NotNull NamespacedKey key, @NotNull Material result, @NotNull RecipeChoice input, @NotNull RecipeChoice material) Create a transmute recipe to produce a result of the specified type.
- 
Method SummaryModifier 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.CraftingRecipecheckResult, getCategory, getGroup, getKey, getResult, setCategory, setGroup
- 
Constructor Details- 
TransmuteRecipepublic TransmuteRecipe(@NotNull @NotNull NamespacedKey key, @NotNull @NotNull Material result, @NotNull @NotNull RecipeChoice input, @NotNull @NotNull RecipeChoice material) Create a transmute recipe to produce a result of the specified type.- Parameters:
- key- the unique recipe key
- result- the transmuted result material
- input- the input ingredient
- material- the additional ingredient
 
 
- 
- 
Method Details- 
getInputGets the input material, which will be transmuted.- Returns:
- the input from transmutation
 
- 
getMaterialGets the additional material required to cause the transmutation.- Returns:
- the ingredient material
 
 
-