Interface ShapelessCraftingRecipe.Builder.EndStep
-
- All Superinterfaces:
AbstractBuilder<RecipeRegistration>
,Buildable.Builder<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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RecipeRegistration
build()
Builds theShapelessCraftingRecipe
.ShapelessCraftingRecipe.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.ShapelessCraftingRecipe.Builder
addIngredients, addIngredients, addIngredients
-
-
-
-
Method Detail
-
group
ShapelessCraftingRecipe.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 theShapelessCraftingRecipe
.- Specified by:
build
in interfaceAbstractBuilder<RecipeRegistration>
- Specified by:
build
in interfaceBuildable.Builder<RecipeRegistration>
- Returns:
- The built shapeless crafting recipe
- Throws:
java.lang.IllegalStateException
- If not all the recipe builder steps are completed or theResourceKeyedBuilder.key(ResourceKey)
isn't set.
-
-