Constructor and 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 and 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
Copyright © 2021. All rights reserved.