public class ChunkCoordIntPair
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
chunkX |
protected int |
chunkZ |
| Constructor and Description |
|---|
ChunkCoordIntPair(int x,
int z)
Construct a new chunk coord int pair.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
int |
getChunkX()
Retrieve the chunk index in the x-dimension.
|
int |
getChunkZ()
Retrieve the chunk index in the z-dimension.
|
static EquivalentConverter<ChunkCoordIntPair> |
getConverter()
Used to convert between NMS ChunkPosition and the wrapper instance.
|
ChunkPosition |
getPosition(int y)
Retrieve the equivalent chunk position.
|
int |
hashCode() |
java.lang.String |
toString() |
public ChunkCoordIntPair(int x,
int z)
x - - the x index of the chunk.z - - the z index of the chunk.public ChunkPosition getPosition(int y)
y - - the y position.public int getChunkX()
This is the number of adjacent chunks to (0, 0), not a block coordinate.
public int getChunkZ()
This is the number of adjacent chunks to (0, 0), not a block coordinate.
public static EquivalentConverter<ChunkCoordIntPair> getConverter()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object