Constructor and Description |
---|
SmithingRecipe(NamespacedKey key,
ItemStack result,
RecipeChoice base,
RecipeChoice addition)
Create a smithing recipe to produce the specified result ItemStack.
|
Modifier and Type | Method and Description |
---|---|
RecipeChoice |
getAddition()
Get the addition recipe item.
|
RecipeChoice |
getBase()
Get the base recipe item.
|
NamespacedKey |
getKey()
Return the namespaced identifier for this object.
|
ItemStack |
getResult()
Get the result of this recipe.
|
public SmithingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result, @NotNull RecipeChoice base, @NotNull RecipeChoice addition)
key
- The unique recipe keyresult
- The item you want the recipe to create.base
- The base ingredientaddition
- The addition ingredient@NotNull public RecipeChoice getBase()
@NotNull public RecipeChoice getAddition()
@NotNull public ItemStack getResult()
Recipe
@NotNull public NamespacedKey getKey()
Keyed
Copyright © 2021. All rights reserved.