Class DyeRecipe
java.lang.Object
org.bukkit.inventory.CraftingRecipe
org.bukkit.inventory.DyeRecipe
- All Implemented Interfaces:
ComplexRecipe, Recipe, Keyed
Represents a recipe which will mix the dye color from the
input with
the dye color from the dye material into the result but with
the mixed dye color.-
Constructor Summary
ConstructorsConstructorDescriptionDyeRecipe(NamespacedKey key, ItemStack result, RecipeChoice input, RecipeChoice material) Create a dye recipe to produce a result of the specified type.DyeRecipe(NamespacedKey key, Material result, RecipeChoice input, RecipeChoice material) Create a dye recipe to produce a result of the specified type. -
Method Summary
Modifier and TypeMethodDescriptiongetInput()Gets the input material, which will be dyed.Gets the additional dye material required to cause the dyeing.Methods inherited from class CraftingRecipe
checkResult, getCategory, getGroup, getKey, getResult, setCategory, setGroup
-
Constructor Details
-
DyeRecipe
public DyeRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input, @NotNull RecipeChoice material) Create a dye recipe to produce a result of the specified type.- Parameters:
key- the unique recipe keyresult- the dyed result iteminput- the input ingredientmaterial- the additional dye ingredient
-
DyeRecipe
public DyeRecipe(@NotNull NamespacedKey key, @NotNull Material result, @NotNull RecipeChoice input, @NotNull RecipeChoice material) Create a dye recipe to produce a result of the specified type.- Parameters:
key- the unique recipe keyresult- the dyed result materialinput- the input ingredientmaterial- the additional dye ingredient
-
-
Method Details
-
getInput
Gets the input material, which will be dyed.- Returns:
- the input
-
getMaterial
Gets the additional dye material required to cause the dyeing.- Returns:
- the dye material
-