Class StonecuttingRecipe
java.lang.Object
org.bukkit.inventory.StonecuttingRecipe
-
Constructor Summary
ConstructorsConstructorDescriptionStonecuttingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull Material source) Create a Stonecutting recipe to craft the specified ItemStack.StonecuttingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice input) Create a Stonecutting recipe to craft the specified ItemStack. -
Method Summary
Modifier and TypeMethodDescriptiongetGroup()Deprecated.no longer used for this recipegetInput()Deprecated.UsegetInputChoice()instead for more complete data.Get the input choice.getKey()Return the namespaced identifier for this object.Get the result of this recipe.voidDeprecated.no longer used for this recipeSets the input of this Stonecutting recipe.setInputChoice(@NotNull RecipeChoice input) Sets the input of this Stonecutting recipe.
-
Constructor Details
-
StonecuttingRecipe
public StonecuttingRecipe(@NotNull @NotNull NamespacedKey key, @NotNull @NotNull ItemStack result, @NotNull @NotNull Material source) Create a Stonecutting recipe to craft the specified ItemStack.- Parameters:
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 Stonecutting recipe to craft the specified ItemStack.- Parameters:
key- The unique recipe keyresult- The item you want the recipe to create.input- The input choices.
-
-
Method Details
-
setInput
-
getInput
Deprecated.UsegetInputChoice()instead for more complete data.Get the input material.- Returns:
- The input material.
-
setInputChoice
Sets the input of this Stonecutting recipe.- Parameters:
input- The input choice.- Returns:
- The changed recipe, so you can chain calls.
-
getInputChoice
Get the input choice.- Returns:
- The input choice.
-
getResult
-
getKey
-
getGroup
Deprecated.no longer used for this recipeGet the group of this recipe. Recipes with the same group may be grouped together when displayed in the client.- Returns:
- recipe group. An empty string denotes no group. May not be null.
-
setGroup
Deprecated.no longer used for this recipeSet the group of this recipe. Recipes with the same group may be grouped together when displayed in the client.- Parameters:
group- recipe group. An empty string denotes no group. May not be null.
-