public final class ChunkPosition
extends java.lang.Object
Constructor and Description |
---|
ChunkPosition(int chunkX,
int chunkZ) |
ChunkPosition(long chunkKey) |
Modifier and Type | Method and Description |
---|---|
long |
chunkKey()
Returns a long key for this chunk position.
|
static long |
chunkKey(int chunkX,
int chunkZ)
Returns a long key for the given chunk coordinates.
|
int |
chunkX() |
int |
chunkZ() |
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
java.lang.String |
toString() |
public ChunkPosition(int chunkX, int chunkZ)
public ChunkPosition(long chunkKey)
public int chunkX()
public int chunkZ()
public long chunkKey()
public static long chunkKey(int chunkX, int chunkZ)
chunkX
- the chunk X coordinatechunkZ
- the chunk Z coordinatepublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object