Package net.minecraft.src
Class RegionFile
java.lang.Object
net.minecraft.src.RegionFile
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()close this RegionFile and prevent further writesgetChunkDataInputStream(int par1, int par2) args: x, y - get uncompressed chunk stream from the region filegetChunkDataOutputStream(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 closedbooleanisChunkSaved(int par1, int par2) args: x, z, - true if chunk has been saved / convertedprotected voidwrite(int par1, int par2, byte[] par3ArrayOfByte, int par4) args: x, z, data, length - write chunk data at (x, z) to disk
-
Constructor Details
-
RegionFile
-
-
Method Details
-
getChunkDataInputStream
args: x, y - get uncompressed chunk stream from the region file -
getChunkDataOutputStream
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
close this RegionFile and prevent further writes- Throws:
IOException
-