Class ChunkCoordinate

java.lang.Object
be.seeseemelk.mockbukkit.ChunkCoordinate

public class ChunkCoordinate extends Object
A simple class that contains an x and z coordinate of a chunk.
  • Field Details

    • x

      public final int x
      The X coordinate.
    • z

      public final int z
      The Z coordinate.
  • Constructor Details

    • ChunkCoordinate

      public ChunkCoordinate(int x, int z)
      Constructs a new ChunkCoordinate.
      Parameters:
      x - The X coordinate.
      z - The Z coordinate.
  • Method Details

    • getX

      public int getX()
      Returns:
      The X coordinate.
    • getZ

      public int getZ()
      Returns:
      The Z coordinate.
    • hashCode

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

      public boolean equals(@Nullable @Nullable Object obj)
      Overrides:
      equals in class Object