Interface ShapedCraftingRecipe.Builder.AisleStep
- All Superinterfaces:
AbstractBuilder<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
In this Step define one or more Ingredients.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceIn 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
Modifier and TypeMethodDescriptionwhere(char symbol, @Nullable Ingredient ingredient) Sets an ingredient based on the aisle pattern.where(Map<Character, Ingredient> ingredientMap) Sets multiple ingredients based on the aisle pattern.Methods inherited from interface net.kyori.adventure.builder.AbstractBuilder
buildMethods inherited from interface org.spongepowered.api.util.ResourceKeyedBuilder
keyMethods inherited from interface org.spongepowered.api.item.recipe.crafting.ShapedCraftingRecipe.Builder
aisle, rows
-
Method Details
-
where
ShapedCraftingRecipe.Builder.AisleStep.ResultStep where(char symbol, @Nullable Ingredient ingredient) throws IllegalArgumentException Sets an ingredient based on the aisle pattern.Sets the ingredient to
Ingredient.empty()ifnullis specified.- Parameters:
symbol- The ingredient symbolingredient- The ingredient to set- Returns:
- The builder
- Throws:
IllegalArgumentException- If the aisle does not contain the specified character symbol
-
where
ShapedCraftingRecipe.Builder.AisleStep.ResultStep where(Map<Character, Ingredient> ingredientMap) throws IllegalArgumentExceptionSets multiple ingredients based on the aisle pattern.- Parameters:
ingredientMap- The ingredients to set- Returns:
- The builder
- Throws:
IllegalArgumentException- If the aisle does not contain the specified character symbol
-