Package org.bukkit.inventory
Class SmithingRecipe
java.lang.Object
org.bukkit.inventory.SmithingRecipe
- Direct Known Subclasses:
 SmithingTransformRecipe,SmithingTrimRecipe
Represents a smithing recipe.
- 
Constructor Summary
ConstructorsConstructorDescriptionSmithingRecipe(NamespacedKey key, ItemStack result, RecipeChoice base, RecipeChoice addition) Deprecated. - 
Method Summary
 
- 
Constructor Details
- 
SmithingRecipe
@Deprecated public SmithingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice base, @NotNull RecipeChoice addition) Deprecated.as of Minecraft 1.20, smithing recipes are now separated into two distinct recipe types,SmithingTransformRecipeandSmithingTrimRecipe. This class now acts as a base class to these two classes and will do nothing when added to the server.Create a smithing recipe to produce the specified result ItemStack.- Parameters:
 key- The unique recipe keyresult- The item you want the recipe to create.base- The base ingredientaddition- The addition ingredient
 
 - 
 - 
Method Details
- 
getBase
Get the base recipe item.- Returns:
 - base choice
 
 - 
getAddition
Get the addition recipe item.- Returns:
 - addition choice
 
 - 
getResult
Description copied from interface:RecipeGet the result of this recipe. - 
getKey
Description copied from interface:KeyedReturn the namespaced identifier for this object. 
 - 
 
SmithingTransformRecipeandSmithingTrimRecipe.