public final class RegionBasedStorage extends Object implements AutoCloseable
Modifier and Type | Field and Description |
---|---|
private it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap<RegionFile> |
cachedRegionFiles |
private File |
directory |
private boolean |
dsync |
Constructor and Description |
---|
RegionBasedStorage(File directory,
boolean dsync) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
private RegionFile |
getRegionFile(ChunkPos pos) |
CompoundTag |
getTagAt(ChunkPos pos) |
void |
method_26982() |
protected void |
write(ChunkPos pos,
CompoundTag tag) |
private final it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap<RegionFile> cachedRegionFiles
private final File directory
private final boolean dsync
RegionBasedStorage(File directory, boolean dsync)
private RegionFile getRegionFile(ChunkPos pos) throws IOException
IOException
@Nullable public CompoundTag getTagAt(ChunkPos pos) throws IOException
IOException
protected void write(ChunkPos pos, CompoundTag tag) throws IOException
IOException
public void close() throws IOException
close
in interface AutoCloseable
IOException
public void method_26982() throws IOException
IOException