Package journeymap.api.v2.server.overlay
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
Creates an instance of aOverlayPointsrecord class.- Parameters:
points- the value for thepointsrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
Returns the value of thepointsrecord component.- Returns:
- the value of the
pointsrecord component
-