Package net.glowstone.io.anvil
Class AnvilChunkIoService
java.lang.Object
net.glowstone.io.anvil.AnvilChunkIoService
- All Implemented Interfaces:
ChunkIoService
An implementation of the
ChunkIoService which reads and writes Anvil maps, an improvement
on the McRegion file format.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
AnvilChunkIoService
-
-
Method Details
-
read
Description copied from interface:ChunkIoServiceReads a single chunk. The provided chunk must not yet be initialized.- Specified by:
readin interfaceChunkIoService- Parameters:
chunk- The GlowChunk to read into.- Returns:
- if the read was successful.
- Throws:
IOException- if an I/O error occurs.
-
write
Description copied from interface:ChunkIoServiceWrites a single chunk.- Specified by:
writein interfaceChunkIoService- Parameters:
chunk- TheGlowChunkto write from.- Throws:
IOException- if an I/O error occurs.
-
unload
Description copied from interface:ChunkIoServiceUnload the service, performing any cleanup necessary.- Specified by:
unloadin interfaceChunkIoService- Throws:
IOException- if an I/O error occurs.
-