Interface SpecialCraftingRecipe.Builder.ResultStep
-
- All Superinterfaces:
Buildable.Builder<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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SpecialCraftingRecipe.Builder.ResultStep
remainingItems(Function<CraftingGridInventory,List<ItemStack>> remainingItemsFunction)
Sets the remainingItems function.SpecialCraftingRecipe.Builder.EndStep
result(Function<CraftingGridInventory,ItemStack> resultFunction)
Sets the result function.SpecialCraftingRecipe.Builder.EndStep
result(ItemStack result)
Sets the result-
Methods inherited from interface net.kyori.adventure.util.Buildable.Builder
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 Detail
-
remainingItems
SpecialCraftingRecipe.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
-
result
SpecialCraftingRecipe.Builder.EndStep result(Function<CraftingGridInventory,ItemStack> resultFunction)
Sets the result function.- Parameters:
resultFunction
- The result function- Returns:
- This builder, for chaining
-
result
SpecialCraftingRecipe.Builder.EndStep result(ItemStack result)
Sets the result- Parameters:
result
- The result- Returns:
- This builder, for chaining
-
-