public class AnvilRegionFile extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
static byte |
COMPRESSION_GZIP |
static byte |
COMPRESSION_ZLIB |
| Constructor and Description |
|---|
AnvilRegionFile(Path anvilRegionPath) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
hasChunk(int x,
int z) |
InputStream |
readChunk(int x,
int z) |
void |
writeChunk(int x,
int z,
ByteBuffer buffer) |
public static final byte COMPRESSION_GZIP
public static final byte COMPRESSION_ZLIB
public AnvilRegionFile(Path anvilRegionPath) throws IOException
IOExceptionpublic InputStream readChunk(int x, int z) throws IOException
IOExceptionpublic void writeChunk(int x,
int z,
ByteBuffer buffer)
throws IOException
IOExceptionpublic boolean hasChunk(int x,
int z)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2017–2020 NukkitX. All rights reserved.