Record Class Zone.Unique
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.worldgen.zone.Zone.Unique
- Enclosing class:
Zone
public static record Zone.Unique(@Nonnull Zone zone, @Nonnull CompletableFuture<Vector2i> position)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CompletableFuture<Vector2i> The field for thepositionrecord component.private final ZoneThe field for thezonerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionUnique(Zone zone, CompletableFuture<Vector2i> position) Creates an instance of aUniquerecord 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.position()Returns the value of thepositionrecord 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. -
position
The field for thepositionrecord component.
-
-
Constructor Details
-
Unique
Creates an instance of aUniquerecord class.- Parameters:
zone- the value for thezonerecord componentposition- the value for thepositionrecord component
-
-
Method Details
-
getPosition
-
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
-
position
Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-