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.IOException
protected void writeChunk(ChunkPos pos, CompoundNBT compound) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.lang.AutoCloseable
java.io.IOException