Interface ShapedCraftingRecipe

    • Method Detail

      • ingredient

        Ingredient ingredient​(int x,
                              int y)
        Returns the ingredient at the specified location in this recipe.
        Parameters:
        x - The x coordinate counted from the left side
        y - The y coordinate counted from the top
        Returns:
        The ingredient predicate at this position defined by the aisle
        Throws:
        java.lang.IndexOutOfBoundsException - if the location is invalid
      • width

        int width()
        Gets the width of the grid this ShapedCraftingRecipe fits into.
        Returns:
        The width of the grid
      • height

        int height()
        Gets the height of the grid this ShapedCraftingRecipe fits into.
        Returns:
        The height of the grid