Class ChunkCoordIntPair

java.lang.Object
com.comphenix.protocol.wrappers.ChunkCoordIntPair

public class ChunkCoordIntPair extends Object
Represents a ChunkCoordIntPair.
  • 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

      public static EquivalentConverter<ChunkCoordIntPair> getConverter()
      Used to convert between NMS ChunkPosition and the wrapper instance.
      Returns:
      A new converter.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object