Package org.bukkit.inventory
Class SmithingRecipe
- java.lang.Object
-
- org.bukkit.inventory.SmithingRecipe
-
-
Constructor Summary
Constructors Constructor Description SmithingRecipe(NamespacedKey key, ItemStack result, RecipeChoice base, RecipeChoice addition)Create a smithing recipe to produce the specified result ItemStack.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier 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 Detail
-
SmithingRecipe
public 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 keyresult- The item you want the recipe to create.base- The base ingredientaddition- The addition ingredient
-
-
Method Detail
-
getBase
@NotNull public RecipeChoice getBase()
Get the base recipe item.- Returns:
- base choice
-
getAddition
@NotNull public RecipeChoice getAddition()
Get the addition recipe item.- Returns:
- addition choice
-
getResult
@NotNull public ItemStack getResult()
Description copied from interface:RecipeGet the result of this recipe.
-
getKey
@NotNull public NamespacedKey getKey()
Description copied from interface:KeyedReturn the namespaced identifier for this object.
-
-