Interface SmithingRecipe.Builder.ResultStep
- All Superinterfaces:
AbstractBuilder<RecipeRegistration>
,Builder<RecipeRegistration,
,SmithingRecipe.Builder> ResettableBuilder<RecipeRegistration,
,SmithingRecipe.Builder> ResourceKeyedBuilder<RecipeRegistration,
,SmithingRecipe.Builder> SmithingRecipe.Builder
- Enclosing interface:
SmithingRecipe.Builder
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.item.recipe.smithing.SmithingRecipe.Builder
SmithingRecipe.Builder.AdditionStep, SmithingRecipe.Builder.BaseStep, SmithingRecipe.Builder.EndStep, SmithingRecipe.Builder.ResultStep
-
Method Summary
Modifier and TypeMethodDescriptionChanges the result and returns this builder.Changes the result and returns this builder.result
(ItemStackSnapshot result) Changes the result and returns this builder.Methods inherited from interface net.kyori.adventure.builder.AbstractBuilder
build
Methods inherited from interface org.spongepowered.api.util.ResourceKeyedBuilder
key
Methods inherited from interface org.spongepowered.api.item.recipe.smithing.SmithingRecipe.Builder
template, template, template
-
Method Details
-
result
Changes the result and returns this builder. The result is theItemStack
created when the recipe is fulfilled.- Parameters:
result
- The output of this recipe- Returns:
- This builder, for chaining
-
result
Changes the result and returns this builder. The result is theItemStack
created when the recipe is fulfilled.- Parameters:
result
- The output of this recipe- Returns:
- This builder, for chaining
-
result
SmithingRecipe.Builder.EndStep result(Function<Inventory, ItemStack> resultFunction, ItemStack exemplaryResult) Changes the result and returns this builder. The result is theItemStack
created when the recipe is fulfilled.- Parameters:
resultFunction
- The result functionexemplaryResult
- The exemplary output of this recipe- Returns:
- This builder, for chaining
-