Interface ShapedCraftingRecipe.Builder.EndStep
-
- All Superinterfaces:
AbstractBuilder<RecipeRegistration>,Buildable.Builder<RecipeRegistration>,Builder<RecipeRegistration,ShapedCraftingRecipe.Builder>,ResettableBuilder<RecipeRegistration,ShapedCraftingRecipe.Builder>,ResourceKeyedBuilder<RecipeRegistration,ShapedCraftingRecipe.Builder>,ShapedCraftingRecipe.Builder
- Enclosing interface:
- ShapedCraftingRecipe.Builder
public static interface ShapedCraftingRecipe.Builder.EndStep extends ShapedCraftingRecipe.Builder, Builder<RecipeRegistration,ShapedCraftingRecipe.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.ShapedCraftingRecipe.Builder
ShapedCraftingRecipe.Builder.AisleStep, ShapedCraftingRecipe.Builder.EndStep, ShapedCraftingRecipe.Builder.ResultStep, ShapedCraftingRecipe.Builder.RowsStep
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RecipeRegistrationbuild()Builds theShapedCraftingRecipe.ShapedCraftingRecipe.Builder.EndStepgroup(@Nullable String name)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.ShapedCraftingRecipe.Builder
aisle, rows
-
-
-
-
Method Detail
-
group
ShapedCraftingRecipe.Builder.EndStep group(@Nullable String name)
Sets the group of the recipe.- Parameters:
name- the group- Returns:
- This builder, for chaining
-
build
RecipeRegistration build() throws IllegalStateException
Builds theShapedCraftingRecipe.- Specified by:
buildin interfaceAbstractBuilder<RecipeRegistration>- Specified by:
buildin interfaceBuildable.Builder<RecipeRegistration>- Returns:
- The built shaped crafting recipe
- Throws:
IllegalStateException- If not all the recipe builder steps are completed or theResourceKeyedBuilder.key(ResourceKey)isn't set.
-
-