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