Class Region

java.lang.Object
net.pl3x.map.core.world.Region

public class Region extends Object
  • Constructor Details

    • Region

      public Region(@NotNull @NotNull World world, int regionX, int regionZ, @NotNull @NotNull Path regionFile)
  • Method Details

    • getWorld

      @NotNull public @NotNull World getWorld()
    • getX

      public int getX()
    • getZ

      public int getZ()
    • getRegionFile

      @NotNull public @NotNull File getRegionFile()
    • getChunk

      @NotNull public @NotNull Chunk getChunk(int chunkX, int chunkZ)
    • loadChunks

      public void loadChunks() throws IOException
      Throws:
      IOException
    • loadChunk

      @NotNull public @NotNull Chunk loadChunk(@NotNull @NotNull RandomAccessFile raf, int index) throws IOException
      Throws:
      IOException
    • equals

      public boolean equals(@Nullable @Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      @NotNull public @NotNull String toString()
      Overrides:
      toString in class Object