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
-
Method Summary
-
Constructor Details
-
AnvilChunkIoService
-
-
Method Details
-
read
Description copied from interface:ChunkIoService
Reads a single chunk. The provided chunk must not yet be initialized.- Specified by:
read
in 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:ChunkIoService
Writes a single chunk.- Specified by:
write
in interfaceChunkIoService
- Parameters:
chunk
- TheGlowChunk
to write from.- Throws:
IOException
- if an I/O error occurs.
-
unload
Description copied from interface:ChunkIoService
Unload the service, performing any cleanup necessary.- Specified by:
unload
in interfaceChunkIoService
- Throws:
IOException
- if an I/O error occurs.
-