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