Class OverlayPoints

java.lang.Object
journeymap.api.v2.server.overlay.OverlayPoints

public final class OverlayPoints extends Object
A ring of points representing one closed polygon outline (or a hole).

Each Long is a packed block position (x in the upper 26 bits, y in the middle 12 bits, z in the lower 26 bits - the vanilla BlockPos long format), packed by the JourneyMap mod. Points are ordered counterclockwise for the outer ring and clockwise for holes (matching the existing JourneyMap polygon convention).

  • Constructor Details

    • OverlayPoints

      public OverlayPoints(List<Long> points)
      Parameters:
      points - packed BlockPos longs, at least 3 entries
  • Method Details