Interface ShapedCraftingRecipe.Builder.EndStep
- All Superinterfaces:
AbstractBuilder<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
Modifier and TypeMethodDescriptionbuild()Builds theShapedCraftingRecipe.Sets the group of the recipe.pack(DataPack<RecipeRegistration> pack) Sets the data pack for the recipe.Methods inherited from interface org.spongepowered.api.util.ResourceKeyedBuilder
keyMethods inherited from interface org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder
aisle, rows
-
Method Details
-
group
Sets the group of the recipe.- Parameters:
name- the group- Returns:
- This builder, for chaining
-
pack
Sets the data pack for the recipe.- Parameters:
pack- The data pack- Returns:
- This builder, for chaining
-
build
Builds theShapedCraftingRecipe.- Specified by:
buildin interfaceAbstractBuilder<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.
-