public final class AnvilChunkIoService extends Object implements ChunkIoService
ChunkIoService
which reads and writes Anvil maps, an improvement
on the McRegion file format.Constructor and Description |
---|
AnvilChunkIoService(File dir) |
Modifier and Type | Method and Description |
---|---|
boolean |
read(GlowChunk chunk)
Reads a single chunk.
|
void |
unload()
Unload the service, performing any cleanup necessary.
|
void |
write(GlowChunk chunk)
Writes a single chunk.
|
public AnvilChunkIoService(File dir)
public boolean read(GlowChunk chunk) throws IOException
ChunkIoService
read
in interface ChunkIoService
chunk
- The GlowChunk to read into.IOException
- if an I/O error occurs.public void write(GlowChunk chunk) throws IOException
ChunkIoService
write
in interface ChunkIoService
chunk
- The GlowChunk
to write from.IOException
- if an I/O error occurs.public void unload() throws IOException
ChunkIoService
unload
in interface ChunkIoService
IOException
- if an I/O error occurs.Copyright © 2021. All rights reserved.