Class SmithingTransformRecipe

java.lang.Object
org.bukkit.inventory.SmithingRecipe
org.bukkit.inventory.SmithingTransformRecipe
All Implemented Interfaces:
Keyed, Recipe, Keyed

public class SmithingTransformRecipe extends SmithingRecipe
Represents a smithing transform recipe.
  • 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 key
      result - 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 key
      result - 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

      @NotNull public @NotNull RecipeChoice getTemplate()
      Get the template recipe item.
      Returns:
      template choice