Interface ShapedCraftingRecipe.Builder.ResultStep
- All Superinterfaces:
- AbstractBuilder<RecipeRegistration>,- Builder<RecipeRegistration,,- ShapedCraftingRecipe.Builder> - ResettableBuilder<RecipeRegistration,,- ShapedCraftingRecipe.Builder> - ResourceKeyedBuilder<RecipeRegistration,,- ShapedCraftingRecipe.Builder> - ShapedCraftingRecipe.Builder
- All Known Subinterfaces:
- ShapedCraftingRecipe.Builder.AisleStep.ResultStep,- ShapedCraftingRecipe.Builder.RowsStep.ResultStep
- Enclosing interface:
- ShapedCraftingRecipe.Builder
public static interface ShapedCraftingRecipe.Builder.ResultStep
extends ShapedCraftingRecipe.Builder
In this Step set the result of the recipe.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.BuilderShapedCraftingRecipe.Builder.AisleStep, ShapedCraftingRecipe.Builder.EndStep, ShapedCraftingRecipe.Builder.ResultStep, ShapedCraftingRecipe.Builder.RowsStep
- 
Method SummaryModifier and TypeMethodDescriptionremainingItems(Function<CraftingGridInventory, List<ItemStack>> remainingItemsFunction) Sets the remainingItems function.result(Function<CraftingGridInventory, ItemStack> resultFunction, ItemStack exemplaryResult) Sets the result function and an exemplary result.Sets the resultantItemStackfor when this shaped recipe is correctly crafted.result(ItemStackSnapshot result) Sets the resultantItemStackSnapshotfor when this shaped recipe is correctly crafted.Methods inherited from interface net.kyori.adventure.builder.AbstractBuilderbuildMethods inherited from interface org.spongepowered.api.util.ResourceKeyedBuilderkeyMethods inherited from interface org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builderaisle, rows
- 
Method Details- 
remainingItemsShapedCraftingRecipe.Builder.ResultStep remainingItems(Function<CraftingGridInventory, List<ItemStack>> 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
 
- 
resultSets the resultantItemStackSnapshotfor when this shaped recipe is correctly crafted.- Parameters:
- result- The resultant snapshot
- Returns:
- The builder
 
- 
resultSets the resultantItemStackfor when this shaped recipe is correctly crafted.- Parameters:
- result- The resultant stack
- Returns:
- The builder
 
- 
resultShapedCraftingRecipe.Builder.EndStep result(Function<CraftingGridInventory, ItemStack> resultFunction, ItemStack exemplaryResult) Sets the result function and an exemplary result.Use ItemStack.empty()as exemplary result if the function returns different items.- Parameters:
- resultFunction- The result function
- exemplaryResult- The exemplary result stack
- Returns:
- The builder
 
 
-