类 StonecuttingRecipe
java.lang.Object
org.bukkit.inventory.StonecuttingRecipe
Represents a Stonecutting recipe.
-
构造器概要
构造器构造器说明StonecuttingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input) Create a cooking recipe to craft the specified ItemStack.StonecuttingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source) Create a Stonecutting recipe to craft the specified ItemStack. -
方法概要
修饰符和类型方法说明getGroup()Get the group of this recipe.getInput()Get the input material.Get the input choice.getKey()返回用于此对象的命名空间标识符.Get the result of this recipe.voidSet the group of this recipe.Sets the input of this cooking recipe.setInputChoice(@NotNull RecipeChoice input) Sets the input of this cooking recipe.
-
构造器详细资料
-
StonecuttingRecipe
public StonecuttingRecipe(@NotNull @NotNull NamespacedKey key, @NotNull @NotNull ItemStack result, @NotNull @NotNull Material source) Create a Stonecutting recipe to craft the specified ItemStack.- 参数:
key- The unique recipe keyresult- The item you want the recipe to create.source- The input material.
-
StonecuttingRecipe
public StonecuttingRecipe(@NotNull @NotNull NamespacedKey key, @NotNull @NotNull ItemStack result, @NotNull @NotNull RecipeChoice input) Create a cooking recipe to craft the specified ItemStack.- 参数:
key- The unique recipe keyresult- The item you want the recipe to create.input- The input choices.
-
-
方法详细资料
-
setInput
Sets the input of this cooking recipe.- 参数:
input- The input material.- 返回:
- The changed recipe, so you can chain calls.
-
getInput
Get the input material.- 返回:
- The input material.
-
setInputChoice
Sets the input of this cooking recipe.- 参数:
input- The input choice.- 返回:
- The changed recipe, so you can chain calls.
-
getInputChoice
Get the input choice.- 返回:
- The input choice.
-
getResult
Get the result of this recipe. -
getKey
从接口复制的说明:Keyed返回用于此对象的命名空间标识符.原文:Return the namespaced identifier for this object.
-
getGroup
Get the group of this recipe. Recipes with the same group may be grouped together when displayed in the client.- 返回:
- recipe group. An empty string denotes no group. May not be null.
-
setGroup
Set the group of this recipe. Recipes with the same group may be grouped together when displayed in the client.- 参数:
group- recipe group. An empty string denotes no group. May not be null.
-