Class MaskUtils

java.lang.Object
io.github.projectunified.craftux.mask.MaskUtils

public class MaskUtils extends Object
The utility class for masks
  • Method Details

    • generateAreaPositions

      @NotNull public static @NotNull List<Position> generateAreaPositions(@NotNull @NotNull Position position1, @NotNull @NotNull Position position2)
      Generate the stream of positions in the area between two positions
      Parameters:
      position1 - the first position
      position2 - the second position
      Returns:
      the stream of positions
    • generateOutlinePositions

      @NotNull public static @NotNull List<Position> generateOutlinePositions(@NotNull @NotNull Position position1, @NotNull @NotNull Position position2)
      Get the stream of positions drawing the outline of the area between 2 positions
      Parameters:
      position1 - the first position
      position2 - the second position
      Returns:
      the stream of positions