Package org.bukkit.inventory
Class SmithingRecipe
java.lang.Object
org.bukkit.inventory.SmithingRecipe
public class SmithingRecipe extends Object implements Recipe, Keyed
Represents a smithing recipe.
- 
Constructor SummaryConstructors Constructor Description SmithingRecipe(NamespacedKey key, ItemStack result, RecipeChoice base, RecipeChoice addition)Create a smithing recipe to produce the specified result ItemStack.
- 
Method SummaryModifier and Type Method Description RecipeChoicegetAddition()Get the addition recipe item.RecipeChoicegetBase()Get the base recipe item.NamespacedKeygetKey()Return the namespaced identifier for this object.ItemStackgetResult()Get the result of this recipe.
- 
Constructor Details- 
SmithingRecipepublic SmithingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice base, @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.
- base- The base ingredient
- addition- The addition ingredient
 
 
- 
- 
Method Details- 
getBaseGet the base recipe item.- Returns:
- base choice
 
- 
getAdditionGet the addition recipe item.- Returns:
- addition choice
 
- 
getResultDescription copied from interface:RecipeGet the result of this recipe.
- 
getKeyDescription copied from interface:KeyedReturn the namespaced identifier for this object.
 
-