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>cachedRegionFilesprivate Filedirectoryprivate booleandsync -
Constructor Summary
Constructors Constructor Description RegionBasedStorage(File directory, boolean dsync) -
Method Summary
Modifier and Type Method Description voidclose()private RegionFilegetRegionFile(ChunkPos pos)CompoundTaggetTagAt(ChunkPos pos)voidmethod_26982()protected voidwrite(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:
closein interfaceAutoCloseable- Throws:
IOException
-
method_26982
- Throws:
IOException
-