Package org.bukkit.inventory
Class SmithingTrimRecipe
java.lang.Object
org.bukkit.inventory.SmithingRecipe
org.bukkit.inventory.SmithingTrimRecipe
- All Implemented Interfaces:
ComplexRecipe
,Recipe
,Keyed
Represents a smithing trim recipe.
-
Constructor Summary
ConstructorsConstructorDescriptionSmithingTrimRecipe
(NamespacedKey key, RecipeChoice template, RecipeChoice base, RecipeChoice addition) Deprecated.trimPattern must be specifiedSmithingTrimRecipe
(NamespacedKey key, RecipeChoice template, RecipeChoice base, RecipeChoice addition, TrimPattern trimPattern) -
Method Summary
Modifier and TypeMethodDescriptionGet the template recipe item.Methods inherited from class org.bukkit.inventory.SmithingRecipe
getAddition, getBase, getKey, getResult
-
Constructor Details
-
SmithingTrimRecipe
@Deprecated(since="1.21.5") public SmithingTrimRecipe(@NotNull NamespacedKey key, @Nullable RecipeChoice template, @Nullable RecipeChoice base, @Nullable RecipeChoice addition) Deprecated.trimPattern must be specifiedCreate 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- See Also:
-
SmithingTrimRecipe
public SmithingTrimRecipe(@NotNull NamespacedKey key, @Nullable RecipeChoice template, @Nullable RecipeChoice base, @Nullable RecipeChoice addition, @NotNull TrimPattern trimPattern)
-
-
Method Details
-
getTemplate
Get the template recipe item.- Returns:
- template choice
-
getTrimPattern
-