Class RegionFile

java.lang.Object
net.minecraft.src.RegionFile

public class RegionFile extends Object
  • Constructor Details

    • RegionFile

      public RegionFile(File par1File)
  • Method Details

    • getChunkDataInputStream

      public DataInputStream getChunkDataInputStream(int par1, int par2)
      args: x, y - get uncompressed chunk stream from the region file
    • getChunkDataOutputStream

      public DataOutputStream getChunkDataOutputStream(int par1, int par2)
      args: x, z - get an output stream used to write chunk data, data is on disk when the returned stream is closed
    • write

      protected void write(int par1, int par2, byte[] par3ArrayOfByte, int par4)
      args: x, z, data, length - write chunk data at (x, z) to disk
    • isChunkSaved

      public boolean isChunkSaved(int par1, int par2)
      args: x, z, - true if chunk has been saved / converted
    • close

      public void close() throws IOException
      close this RegionFile and prevent further writes
      Throws:
      IOException