Record Class Zone.UniqueCandidate
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.worldgen.zone.Zone.UniqueCandidate
- Enclosing class:
Zone
public static record Zone.UniqueCandidate(@Nonnull Zone.UniqueEntry zone, @Nonnull Vector2i[] positions)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Zone.UniqueCandidate[]private final Vector2i[]The field for thepositionsrecord component.private final Zone.UniqueEntryThe field for thezonerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionUniqueCandidate(Zone.UniqueEntry zone, Vector2i[] positions) Creates an instance of aUniqueCandidaterecord 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.Vector2i[]Returns the value of thepositionsrecord component.final StringtoString()Returns a string representation of this record class.zone()Returns the value of thezonerecord component.
-
Field Details
-
zone
The field for thezonerecord component. -
positions
The field for thepositionsrecord component. -
EMPTY_ARRAY
-
-
Constructor Details
-
UniqueCandidate
Creates an instance of aUniqueCandidaterecord class.- Parameters:
zone- the value for thezonerecord componentpositions- the value for thepositionsrecord 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). -
zone
Returns the value of thezonerecord component.- Returns:
- the value of the
zonerecord component
-
positions
Returns the value of thepositionsrecord component.- Returns:
- the value of the
positionsrecord component
-