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.SmithingTransformRecipe
(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice template, @NotNull RecipeChoice base, @NotNull RecipeChoice addition, boolean copyNbt) 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
-
SmithingTransformRecipe
public SmithingTransformRecipe(@NotNull @NotNull NamespacedKey key, @NotNull @NotNull ItemStack result, @NotNull @NotNull RecipeChoice template, @NotNull @NotNull RecipeChoice base, @NotNull @NotNull RecipeChoice addition, boolean copyNbt) 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 ingredientcopyNbt
- whether to copy the nbt from the input base item to the output
-
-
Method Details
-
getTemplate
Get the template recipe item.- Returns:
- template choice
-