Interface SpecialCraftingRecipe.Builder.ResultStep
- All Superinterfaces:
AbstractBuilder<RecipeRegistration>
,Builder<RecipeRegistration,
,SpecialCraftingRecipe.Builder> ResettableBuilder<RecipeRegistration,
,SpecialCraftingRecipe.Builder> ResourceKeyedBuilder<RecipeRegistration,
,SpecialCraftingRecipe.Builder> SpecialCraftingRecipe.Builder
- Enclosing interface:
SpecialCraftingRecipe.Builder
public static interface SpecialCraftingRecipe.Builder.ResultStep
extends SpecialCraftingRecipe.Builder
In this Step set the result of the Recipe.
Optionally configure the remaining items.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.item.recipe.crafting.SpecialCraftingRecipe.Builder
SpecialCraftingRecipe.Builder.EndStep, SpecialCraftingRecipe.Builder.ResultStep
-
Method Summary
Modifier and TypeMethodDescriptionremainingItems
(Function<RecipeInput.Crafting, ? extends List<? extends ItemStackLike>> remainingItemsFunction) Sets the remainingItems function.result
(Function<RecipeInput.Crafting, ? extends ItemStackLike> resultFunction) Sets the result function.result
(ItemStackLike result) Sets the resultMethods 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.crafting.SpecialCraftingRecipe.Builder
matching
-
Method Details
-
remainingItems
SpecialCraftingRecipe.Builder.ResultStep remainingItems(Function<RecipeInput.Crafting, ? extends List<? extends ItemStackLike>> remainingItemsFunction) Sets the remainingItems function. The function must return a list of the same size as the input CraftingGridInventory.- Parameters:
remainingItemsFunction
- the remaining items function- Returns:
- This builder, for chaining
-
result
SpecialCraftingRecipe.Builder.EndStep result(Function<RecipeInput.Crafting, ? extends ItemStackLike> resultFunction) Sets the result function.- Parameters:
resultFunction
- The result function- Returns:
- This builder, for chaining
-
result
Sets the result- Parameters:
result
- The result- Returns:
- This builder, for chaining
-