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 RecipeRegistration
build()
Builds theShapedCraftingRecipe
.ShapedCraftingRecipe.Builder.EndStep
group(@Nullable java.lang.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 java.lang.String name)
Sets the group of the recipe.- Parameters:
name
- the group- Returns:
- This builder, for chaining
-
build
RecipeRegistration build() throws java.lang.IllegalStateException
Builds theShapedCraftingRecipe
.- Specified by:
build
in interfaceAbstractBuilder<RecipeRegistration>
- Specified by:
build
in interfaceBuildable.Builder<RecipeRegistration>
- Returns:
- The built shaped crafting recipe
- Throws:
java.lang.IllegalStateException
- If not all the recipe builder steps are completed or theResourceKeyedBuilder.key(ResourceKey)
isn't set.
-
-