Package org.bukkit.inventory
Class SmithingTransformRecipe
java.lang.Object
org.bukkit.inventory.SmithingRecipe
org.bukkit.inventory.SmithingTransformRecipe
Represents a smithing transform recipe.
-
Constructor Summary
ConstructorDescriptionSmithingTransformRecipe
(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice template, @NotNull RecipeChoice base, @NotNull RecipeChoice addition) Create a smithing recipe to produce the specified result ItemStack. -
Method Summary
Modifier and TypeMethodDescriptionGet the template recipe item.Methods inherited from class org.bukkit.inventory.SmithingRecipe
getAddition, getBase, getKey, getResult, willCopyNbt
-
Constructor Details
-
SmithingTransformRecipe
public SmithingTransformRecipe(@NotNull @NotNull NamespacedKey key, @NotNull @NotNull ItemStack result, @NotNull @NotNull RecipeChoice template, @NotNull @NotNull RecipeChoice base, @NotNull @NotNull RecipeChoice addition) Create a smithing recipe to produce the specified result ItemStack.- Parameters:
key
- The unique recipe keyresult
- The item you want the recipe to create.template
- The template item.base
- The base ingredientaddition
- The addition ingredient
-
-
Method Details
-
getTemplate
Get the template recipe item.- Returns:
- template choice
-