Interface ShapedCraftingRecipe.Builder.AisleStep

    • 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() if null is specified.

        Parameters:
        symbol - The ingredient symbol
        ingredient - 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