Interface ShapelessCraftingRecipe.Builder.EndStep
- All Superinterfaces:
AbstractBuilder<RecipeRegistration>
,Builder<RecipeRegistration,
,ShapelessCraftingRecipe.Builder> ResettableBuilder<RecipeRegistration,
,ShapelessCraftingRecipe.Builder> ResourceKeyedBuilder<RecipeRegistration,
,ShapelessCraftingRecipe.Builder> ShapelessCraftingRecipe.Builder
- Enclosing interface:
- ShapelessCraftingRecipe.Builder
public static interface ShapelessCraftingRecipe.Builder.EndStep
extends ShapelessCraftingRecipe.Builder, Builder<RecipeRegistration,ShapelessCraftingRecipe.Builder>
In this Step set the group of the Recipe and/or build it.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder
ShapelessCraftingRecipe.Builder.EndStep, ShapelessCraftingRecipe.Builder.ResultStep
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds theShapelessCraftingRecipe
.Sets the group of the recipe.Methods inherited from interface org.spongepowered.api.util.ResourceKeyedBuilder
key
Methods inherited from interface org.spongepowered.api.item.recipe.crafting.ShapelessCraftingRecipe.Builder
addIngredients, addIngredients, addIngredients
-
Method Details
-
group
Sets the group of the recipe.- Parameters:
name
- the group- Returns:
- This builder, for chaining
-
build
Builds theShapelessCraftingRecipe
.- Specified by:
build
in interfaceAbstractBuilder<RecipeRegistration>
- Returns:
- The built shapeless crafting recipe
- Throws:
IllegalStateException
- If not all the recipe builder steps are completed or theResourceKeyedBuilder.key(ResourceKey)
isn't set.
-