Record Class OverlayPoints
java.lang.Object
java.lang.Record
journeymap.api.v2.server.overlay.OverlayPoints
- Record Components:
points- packed BlockPos longs, at least 3 entries
A ring of points representing one closed polygon outline (or a hole).
Each Long is a packed BlockPos produced
via BlockPos#asLong(). Points are ordered counterclockwise for the
outer ring and clockwise for holes (matching the existing JourneyMap
polygon convention).
-
Constructor Summary
ConstructorsConstructorDescriptionOverlayPoints(List<Long> points) Creates an instance of aOverlayPointsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.points()Returns the value of thepointsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OverlayPoints
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
points
-