Interface MapCanvas.Builder

    • Method Detail

      • paint

        MapCanvas.Builder paint​(int startX,
                                int startY,
                                int endX,
                                int endY,
                                MapColor mapColor)
        Sets the rectangle bounded by the given co-ordinates to the supplied MapColor.

        The provided co-ordinates are included in the region.

        Parameters:
        startX - Bottom left corner of region to paint
        startY - Bottom left corner of region to paint
        endX - Top right corner of region to paint
        endY - Top right corner of region to paint
        mapColor - The MapColor to paint the given region
        Returns:
        this builder, for chaining
      • paint

        default MapCanvas.Builder paint​(Vector2i start,
                                        Vector2i end,
                                        MapColor mapColor)
        Sets the rectangle bounded by the given co-ordinates to the supplied MapColor.

        The provided co-ordinates are included in the region.

        Parameters:
        start - A Vector2i that represents one corner of the rectangle.
        end - A Vector2i that represents the opposite corner of the rectangle.
        mapColor - The MapColor to paint this region
        Returns:
        this builder, for chaining