public interface ChunkIoService
Implemented by classes to provide a way of saving and loading chunks to external storage.
| 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.
|
boolean read(GlowChunk chunk) throws IOException
chunk - The GlowChunk to read into.IOException - if an I/O error occurs.void write(GlowChunk chunk) throws IOException
chunk - The GlowChunk to write from.IOException - if an I/O error occurs.void unload()
throws IOException
IOException - if an I/O error occurs.Copyright © 2021. All rights reserved.