public class RegionFile
extends java.lang.Object
Constructor and Description |
---|
RegionFile(java.io.File par1File) |
Modifier and Type | Method and Description |
---|---|
void |
close()
close this RegionFile and prevent further writes
|
java.io.DataInputStream |
getChunkDataInputStream(int par1,
int par2)
args: x, y - get uncompressed chunk stream from the region file
|
java.io.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
|
boolean |
isChunkSaved(int par1,
int par2)
args: x, z, - true if chunk has been saved / converted
|
protected void |
write(int par1,
int par2,
byte[] par3ArrayOfByte,
int par4)
args: x, z, data, length - write chunk data at (x, z) to disk
|
public java.io.DataInputStream getChunkDataInputStream(int par1, int par2)
public java.io.DataOutputStream getChunkDataOutputStream(int par1, int par2)
protected void write(int par1, int par2, byte[] par3ArrayOfByte, int par4)
public boolean isChunkSaved(int par1, int par2)
public void close() throws java.io.IOException
java.io.IOException