Record Class ChunkPositionKey
java.lang.Object
java.lang.Record
me.tayebyassine.homestead.database.cache.ChunkPositionKey
-
Constructor Summary
ConstructorsConstructorDescriptionChunkPositionKey(UUID worldId, int x, int z) Creates an instance of aChunkPositionKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.worldId()Returns the value of theworldIdrecord component.intx()Returns the value of thexrecord component.intz()Returns the value of thezrecord component.
-
Constructor Details
-
ChunkPositionKey
Creates an instance of aChunkPositionKeyrecord class.- Parameters:
worldId- the value for theworldIdrecord componentx- the value for thexrecord componentz- the value for thezrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
toString
-
hashCode
-
worldId
Returns the value of theworldIdrecord component.- Returns:
- the value of the
worldIdrecord component
-
x
public int x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
z
public int z()Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-