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
ChunkIoServiceread in interface ChunkIoServicechunk - The GlowChunk to read into.IOException - if an I/O error occurs.public void write(GlowChunk chunk) throws IOException
ChunkIoServicewrite in interface ChunkIoServicechunk - The GlowChunk to write from.IOException - if an I/O error occurs.public void unload()
throws IOException
ChunkIoServiceunload in interface ChunkIoServiceIOException - if an I/O error occurs.Copyright © 2021. All rights reserved.