类 StonecuttingRecipe
java.lang.Object
org.bukkit.inventory.StonecuttingRecipe
代表一个切石配方。
-
构造器概要
构造器构造器说明StonecuttingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input) 创建一个烹饪配方以合成指定的物品。StonecuttingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source) 创建一个切石配方以合成指定的物品。 -
方法概要
修饰符和类型方法说明getGroup()获取此配方的分组。getInput()获取输入材料。获取输入选择。getKey()返回用于此对象的命名空间标识符.获取此配方的结果。void设置此配方的分组。设置此烹饪配方的输入。setInputChoice(@NotNull RecipeChoice input) 设置此烹饪配方的输入。
-
构造器详细资料
-
StonecuttingRecipe
public StonecuttingRecipe(@NotNull @NotNull NamespacedKey key, @NotNull @NotNull ItemStack result, @NotNull @NotNull Material source) 创建一个切石配方以合成指定的物品。- 参数:
key- 配方的唯一键。result- 你希望配方创建的物品。source- 输入材料。原文:Create a Stonecutting recipe to craft the specified ItemStack.
-
StonecuttingRecipe
public StonecuttingRecipe(@NotNull @NotNull NamespacedKey key, @NotNull @NotNull ItemStack result, @NotNull @NotNull RecipeChoice input) 创建一个烹饪配方以合成指定的物品。- 参数:
key- 配方的唯一键。result- 你希望配方创建的物品。input- 输入选择。原文:Create a cooking recipe to craft the specified ItemStack.
-
-
方法详细资料
-
setInput
设置此烹饪配方的输入。- 参数:
input- 输入材料。- 返回:
- 修改后的配方,以便链式调用。
原文:Sets the input of this cooking recipe.
-
getInput
获取输入材料。- 返回:
- 输入材料。
原文:Get the input material.
-
setInputChoice
设置此烹饪配方的输入。- 参数:
input- 输入选择。- 返回:
- 修改后的配方,以便链式调用。
原文:Sets the input of this cooking recipe.
-
getInputChoice
获取输入选择。- 返回:
- 输入选择。
原文:Get the input choice.
-
getResult
获取此配方的结果。 -
getKey
从接口复制的说明:Keyed返回用于此对象的命名空间标识符.原文:Return the namespaced identifier for this object.
-
getGroup
获取此配方的分组。相同分组的配方在客户端显示时可能会被分组在一起。- 返回:
- 配方分组。空字符串表示无分组。不能为 null。
原文:Get the group of this recipe. Recipes with the same group may be grouped together when displayed in the client.
-
setGroup
设置此配方的分组。相同分组的配方在客户端显示时可能会被分组在一起。- 参数:
group- 配方分组。空字符串表示无分组。不能为 null。原文:Set the group of this recipe. Recipes with the same group may be grouped together when displayed in the client.
-