Interface ShapedCraftingRecipe.Builder.AisleStep
-
- All Superinterfaces:
AbstractBuilder<RecipeRegistration>
,Buildable.Builder<RecipeRegistration>
,Builder<RecipeRegistration,ShapedCraftingRecipe.Builder>
,ResettableBuilder<RecipeRegistration,ShapedCraftingRecipe.Builder>
,ResourceKeyedBuilder<RecipeRegistration,ShapedCraftingRecipe.Builder>
,ShapedCraftingRecipe.Builder
- All Known Subinterfaces:
ShapedCraftingRecipe.Builder.AisleStep.ResultStep
- Enclosing interface:
- ShapedCraftingRecipe.Builder
public static interface ShapedCraftingRecipe.Builder.AisleStep extends ShapedCraftingRecipe.Builder
In this Step define one or more Ingredients.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ShapedCraftingRecipe.Builder.AisleStep.ResultStep
In this Step define one or more Ingredients or continue by setting the result.-
Nested classes/interfaces inherited from interface org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder
ShapedCraftingRecipe.Builder.AisleStep, ShapedCraftingRecipe.Builder.EndStep, ShapedCraftingRecipe.Builder.RowsStep
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ShapedCraftingRecipe.Builder.AisleStep.ResultStep
where(char symbol, @Nullable Ingredient ingredient)
Sets an ingredient based on the aisle pattern.ShapedCraftingRecipe.Builder.AisleStep.ResultStep
where(java.util.Map<java.lang.Character,Ingredient> ingredientMap)
Sets multiple ingredients based on the aisle pattern.-
Methods inherited from interface net.kyori.adventure.util.Buildable.Builder
build
-
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
-
where
ShapedCraftingRecipe.Builder.AisleStep.ResultStep where(char symbol, @Nullable Ingredient ingredient) throws java.lang.IllegalArgumentException
Sets an ingredient based on the aisle pattern.Sets the ingredient to
Ingredient.empty()
ifnull
is specified.- Parameters:
symbol
- The ingredient symbolingredient
- The ingredient to set- Returns:
- The builder
- Throws:
java.lang.IllegalArgumentException
- If the aisle does not contain the specified character symbol
-
where
ShapedCraftingRecipe.Builder.AisleStep.ResultStep where(java.util.Map<java.lang.Character,Ingredient> ingredientMap) throws java.lang.IllegalArgumentException
Sets multiple ingredients based on the aisle pattern.- Parameters:
ingredientMap
- The ingredients to set- Returns:
- The builder
- Throws:
java.lang.IllegalArgumentException
- If the aisle does not contain the specified character symbol
-
-