Interface CookingRecipe.Builder.ResultStep
-
- All Superinterfaces:
Buildable.Builder<RecipeRegistration>
,Builder<RecipeRegistration,CookingRecipe.Builder>
,CookingRecipe.Builder
,ResettableBuilder<RecipeRegistration,CookingRecipe.Builder>
,ResourceKeyedBuilder<RecipeRegistration,CookingRecipe.Builder>
- Enclosing interface:
- CookingRecipe.Builder
public static interface CookingRecipe.Builder.ResultStep extends CookingRecipe.Builder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.spongepowered.api.item.recipe.cooking.CookingRecipe.Builder
CookingRecipe.Builder.EndStep, CookingRecipe.Builder.IngredientStep, CookingRecipe.Builder.ResultStep
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CookingRecipe.Builder.EndStep
result(Function<Inventory,ItemStack> resultFunction, ItemStack exemplaryResult)
Sets the result function and an exemplary result.default CookingRecipe.Builder.EndStep
result(Supplier<? extends ItemType> result)
Changes the result and returns this builder.CookingRecipe.Builder.EndStep
result(ItemStack result)
Changes the result and returns this builder.CookingRecipe.Builder.EndStep
result(ItemStackSnapshot result)
Changes the result and returns this builder.CookingRecipe.Builder.EndStep
result(ItemType result)
Changes the result and returns this builder.-
Methods inherited from interface net.kyori.adventure.util.Buildable.Builder
build
-
Methods inherited from interface org.spongepowered.api.item.recipe.cooking.CookingRecipe.Builder
type, type
-
Methods inherited from interface org.spongepowered.api.util.ResourceKeyedBuilder
key
-
-
-
-
Method Detail
-
result
CookingRecipe.Builder.EndStep result(ItemType result)
Changes the result and returns this builder. The result is theItemType
created when the recipe is fulfilled.- Parameters:
result
- The output of this recipe- Returns:
- This builder, for chaining
-
result
default CookingRecipe.Builder.EndStep result(Supplier<? extends ItemType> result)
Changes the result and returns this builder. The result is theItemType
created when the recipe is fulfilled.- Parameters:
result
- The output of this recipe- Returns:
- This builder, for chaining
-
result
CookingRecipe.Builder.EndStep result(ItemStack 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
CookingRecipe.Builder.EndStep result(ItemStackSnapshot 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
CookingRecipe.Builder.EndStep result(Function<Inventory,ItemStack> resultFunction, ItemStack exemplaryResult)
Sets the result function and an exemplary result.- Parameters:
resultFunction
- The result functionexemplaryResult
- The exemplary result stack- Returns:
- The builder
-
-