| Constructor | Description |
|---|---|
SmithingRecipe(@NotNull NamespacedKey key,
@NotNull ItemStack result,
@NotNull RecipeChoice base,
@NotNull RecipeChoice addition) |
Create a smithing recipe to produce the specified result ItemStack.
|
| Modifier and Type | Method | Description |
|---|---|---|
@NotNull RecipeChoice |
getAddition() |
Get the addition recipe item.
|
@NotNull RecipeChoice |
getBase() |
Get the base recipe item.
|
@NotNull NamespacedKey |
getKey() |
Return the namespaced identifier for this object.
|
@NotNull ItemStack |
getResult() |
Get the result of this recipe.
|
public SmithingRecipe(@NotNull
@NotNull NamespacedKey key,
@NotNull
@NotNull ItemStack result,
@NotNull
@NotNull RecipeChoice base,
@NotNull
@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 @NotNull RecipeChoice getBase()
@NotNull public @NotNull RecipeChoice getAddition()
@NotNull public @NotNull ItemStack getResult()
Recipe@NotNull public @NotNull NamespacedKey getKey()
KeyedCopyright © 2020. All rights reserved.