类 DyeRecipe
java.lang.Object
org.bukkit.inventory.CraftingRecipe
org.bukkit.inventory.DyeRecipe
- 所有已实现的接口:
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.-
构造器概要
构造器构造器说明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.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. -
方法概要
修饰符和类型方法说明getInput()Gets the input material, which will be dyed.Gets the additional dye material required to cause the dyeing.从类继承的方法 org.bukkit.inventory.CraftingRecipe
checkResult, getCategory, getGroup, getKey, getResult, setCategory, setGroup
-
构造器详细资料
-
DyeRecipe
public DyeRecipe(@NotNull @NotNull NamespacedKey key, @NotNull @NotNull ItemStack result, @NotNull @NotNull RecipeChoice input, @NotNull @NotNull RecipeChoice material) Create a dye recipe to produce a result of the specified type.- 参数:
key- the unique recipe keyresult- the dyed result iteminput- the input ingredientmaterial- the additional dye ingredient
-
DyeRecipe
public DyeRecipe(@NotNull @NotNull NamespacedKey key, @NotNull @NotNull Material result, @NotNull @NotNull RecipeChoice input, @NotNull @NotNull RecipeChoice material) Create a dye recipe to produce a result of the specified type.- 参数:
key- the unique recipe keyresult- the dyed result materialinput- the input ingredientmaterial- the additional dye ingredient
-
-
方法详细资料
-
getInput
Gets the input material, which will be dyed.- 返回:
- the input
-
getMaterial
Gets the additional dye material required to cause the dyeing.- 返回:
- the dye material
-