Package org.bukkit.inventory
Class SmithingTransformRecipe
java.lang.Object
org.bukkit.inventory.SmithingRecipe
org.bukkit.inventory.SmithingTransformRecipe
Represents a smithing transform recipe.
-
Constructor Summary
ConstructorsConstructorDescriptionSmithingTransformRecipe(@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 copyDataComponents) 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, willCopyDataComponents, 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 (RecipeChoice.empty()can be used)base- The base ingredient (RecipeChoice.empty()can be used)addition- The addition ingredient (RecipeChoice.empty()can be used)
-
SmithingTransformRecipe
public SmithingTransformRecipe(@NotNull @NotNull NamespacedKey key, @NotNull @NotNull ItemStack result, @NotNull @NotNull RecipeChoice template, @NotNull @NotNull RecipeChoice base, @NotNull @NotNull RecipeChoice addition, boolean copyDataComponents) 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 (RecipeChoice.empty()can be used)base- The base ingredient (RecipeChoice.empty()can be used)addition- The addition ingredient (RecipeChoice.empty()can be used)copyDataComponents- whether to copy the data components from the input base item to the output
-
-
Method Details
-
getTemplate
Get the template recipe item.- Returns:
- template choice
-