Contents
Record Class Zone.Unique
java.lang.Object
java.lang.Record
com.hypixel.hytale.server.worldgen.zone.Zone.Unique
- Record Components:
zone- The zone the unique belongs to.position- The position of the unique in world coordinates.
- Enclosing class:
Zone
public static record Zone.Unique(@Nonnull Zone zone, @Nonnull CompletableFuture<org.joml.Vector2i> position)
extends Record
A unique instance placed in the world.
-
Constructor Summary
ConstructorsConstructorDescriptionUnique(Zone zone, CompletableFuture<org.joml.Vector2i> position) Creates an instance of aUniquerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.org.joml.Vector2ifinal inthashCode()Returns a hash code value for this object.CompletableFuture<org.joml.Vector2i> position()Returns the value of thepositionrecord component.final StringtoString()Returns a string representation of this record class.zone()Returns the value of thezonerecord component.
-
Constructor Details
-
Method Details
-
getPosition
public org.joml.Vector2i getPosition() -
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). -
zone
-
position
-