Interface SmithingRecipe
- All Superinterfaces:
DataPackSerializable,DefaultedRegistryValue<Recipe<?>>,Recipe<RecipeInput.Smithing>
A Smithing Recipe.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilds a simple smithing recipe -
Method Summary
Modifier and TypeMethodDescriptionReturns the additionalIngredientfor thisSmithingRecipe.Returns the baseIngredientfor thisSmithingRecipe.static SmithingRecipe.Builderbuilder()Returns the smithing templateIngredientfor thisSmithingRecipe.RecipeType<? extends SmithingRecipe> type()Gets theRecipeTypeof this recipe.Methods inherited from interface org.spongepowered.api.datapack.DataPackSerializable
toDataPackMethods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValue
asDefaultedReference, findKey, keyMethods inherited from interface org.spongepowered.api.item.recipe.Recipe
exemplaryResult, isDynamic, isValid, remainingItems, result, result
-
Method Details
-
builder
-
templateIngredient
Optional<Ingredient> templateIngredient()Returns the smithing templateIngredientfor thisSmithingRecipe.- Returns:
- The smithing template
Ingredientfor thisSmithingRecipe.
-
baseIngredient
Optional<Ingredient> baseIngredient()Returns the baseIngredientfor thisSmithingRecipe.- Returns:
- The base
Ingredientfor thisSmithingRecipe.
-
additionalIngredient
Optional<Ingredient> additionalIngredient()Returns the additionalIngredientfor thisSmithingRecipe.- Returns:
- The additional
Ingredientfor thisSmithingRecipe.
-
type
RecipeType<? extends SmithingRecipe> type()Description copied from interface:RecipeGets theRecipeTypeof this recipe.- Specified by:
typein interfaceRecipe<RecipeInput.Smithing>- Returns:
- The recipe type.
-