Package org.bukkit.inventory
Class SmithingTrimRecipe
java.lang.Object
org.bukkit.inventory.SmithingRecipe
org.bukkit.inventory.SmithingTrimRecipe
- All Implemented Interfaces:
net.kyori.adventure.key.Keyed
,ComplexRecipe
,Recipe
,Keyed
@MinecraftExperimental
@Experimental
public class SmithingTrimRecipe
extends SmithingRecipe
implements ComplexRecipe
Represents a smithing trim recipe.
- API Note:
- This recipe is part of an experimental feature of Minecraft and hence subject to change.
-
Constructor Summary
ConstructorDescriptionSmithingTrimRecipe
(@NotNull NamespacedKey key, @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
-
SmithingTrimRecipe
public SmithingTrimRecipe(@NotNull @NotNull NamespacedKey key, @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 keytemplate
- The template item.base
- The base ingredientaddition
- The addition ingredient
-
-
Method Details
-
getTemplate
Get the template recipe item.- Returns:
- template choice
-