Package net.minecraft.world.storage
Class RegionBasedStorage
java.lang.Object
net.minecraft.world.storage.RegionBasedStorage
- All Implemented Interfaces:
AutoCloseable
public final class RegionBasedStorage extends Object implements AutoCloseable
-
Field Summary
Fields Modifier and Type Field Description private Long2ObjectLinkedOpenHashMap<RegionFile>
cachedRegionFiles
private File
directory
private boolean
dsync
-
Constructor Summary
Constructors Constructor Description RegionBasedStorage(File directory, boolean dsync)
-
Method Summary
Modifier and Type Method Description void
close()
private RegionFile
getRegionFile(ChunkPos pos)
CompoundTag
getTagAt(ChunkPos pos)
void
method_26982()
protected void
write(ChunkPos pos, CompoundTag tag)
-
Field Details
-
cachedRegionFiles
-
directory
-
dsync
private final boolean dsync
-
-
Constructor Details
-
RegionBasedStorage
RegionBasedStorage(File directory, boolean dsync)
-
-
Method Details
-
getRegionFile
- Throws:
IOException
-
getTagAt
- Throws:
IOException
-
write
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-
method_26982
- Throws:
IOException
-