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
(NamespacedKey key, ItemStack result, RecipeChoice template, RecipeChoice base, RecipeChoice addition) Create a smithing recipe to produce the specified result ItemStack. -
Method Summary
Methods inherited from class org.bukkit.inventory.SmithingRecipe
getAddition, getBase, getKey, getResult
-
Constructor Details
-
SmithingTransformRecipe
public SmithingTransformRecipe(@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.- 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
-