Package com.comphenix.protocol.wrappers
Class ChunkCoordIntPair
java.lang.Object
com.comphenix.protocol.wrappers.ChunkCoordIntPair
Represents a ChunkCoordIntPair.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintRetrieve the chunk index in the x-dimension.intRetrieve the chunk index in the z-dimension.static EquivalentConverter<ChunkCoordIntPair> Used to convert between NMS ChunkPosition and the wrapper instance.inthashCode()toString()
-
Field Details
-
chunkX
protected final int chunkX -
chunkZ
protected final int chunkZ
-
-
Constructor Details
-
ChunkCoordIntPair
public ChunkCoordIntPair(int x, int z) Construct a new chunk coord int pair.- Parameters:
x- - the x index of the chunk.z- - the z index of the chunk.
-
-
Method Details
-
getChunkX
public int getChunkX()Retrieve the chunk index in the x-dimension.This is the number of adjacent chunks to (0, 0), not a block coordinate.
- Returns:
- The x chunk index.
-
getChunkZ
public int getChunkZ()Retrieve the chunk index in the z-dimension.This is the number of adjacent chunks to (0, 0), not a block coordinate.
- Returns:
- The z chunk index.
-
getConverter
Used to convert between NMS ChunkPosition and the wrapper instance.- Returns:
- A new converter.
-
equals
-
hashCode
public int hashCode() -
toString
-