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