public abstract class RegionFileCache
extends java.lang.Object
implements java.lang.AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
protected it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap<RegionFile> |
cache |
| Modifier | Constructor and Description |
|---|---|
protected |
RegionFileCache(java.io.File worldDir) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
CompoundNBT |
readChunk(ChunkPos pos) |
protected void |
writeChunk(ChunkPos pos,
CompoundNBT compound) |
protected final it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap<RegionFile> cache
@Nullable public CompoundNBT readChunk(ChunkPos pos) throws java.io.IOException
java.io.IOExceptionprotected void writeChunk(ChunkPos pos, CompoundNBT compound) throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseablejava.io.IOException