Interface StoneCutterRecipe.Builder.ResultStep
- All Superinterfaces:
AbstractBuilder<StoneCutterRecipe>,Builder<StoneCutterRecipe,,StoneCutterRecipe.Builder> ResettableBuilder<StoneCutterRecipe,,StoneCutterRecipe.Builder> StoneCutterRecipe.Builder
- Enclosing interface:
StoneCutterRecipe.Builder
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.item.recipe.single.StoneCutterRecipe.Builder
StoneCutterRecipe.Builder.EndStep, StoneCutterRecipe.Builder.ResultStep -
Method Summary
Modifier and TypeMethodDescriptionresult(Function<RecipeInput.Single, ? extends ItemStackLike> resultFunction, ItemStackLike exemplaryResult) Changes the result and returns this builder.result(ItemStackLike result) Changes the result and returns this builder.Methods inherited from interface net.kyori.adventure.builder.AbstractBuilder
buildMethods inherited from interface org.spongepowered.api.item.recipe.single.StoneCutterRecipe.Builder
ingredient, ingredient, ingredient
-
Method Details
-
result
Changes the result and returns this builder. The result is theItemStackLikecreated when the recipe is fulfilled.- Parameters:
result- The output of this recipe- Returns:
- This builder, for chaining
-
result
StoneCutterRecipe.Builder.EndStep result(Function<RecipeInput.Single, ? extends ItemStackLike> resultFunction, ItemStackLike exemplaryResult) Changes the result and returns this builder. The result is theItemStackLikecreated when the recipe is fulfilled.- Parameters:
resultFunction- The result functionexemplaryResult- The exemplary output of this recipe- Returns:
- This builder, for chaining
-