Class RegionFileStorage
java.lang.Object
net.minecraft.world.level.chunk.storage.RegionFileStorage
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Modifier and TypeFieldDescriptionstatic String
private File
private static int
private it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap<RegionFile>
private boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
flush()
private RegionFile
getRegionFile(ChunkPos p_63712_)
protected void
write(ChunkPos p_63709_, CompoundTag p_63710_)
-
Field Details
-
ANVIL_EXTENSION
- See Also:
- Constant Field Values
-
MAX_CACHE_SIZE
private static final int MAX_CACHE_SIZE- See Also:
- Constant Field Values
-
regionCache
-
folder
-
sync
private final boolean sync
-
-
Constructor Details
-
RegionFileStorage
RegionFileStorage(File p_63703_, boolean p_63704_)
-
-
Method Details
-
getRegionFile
- Throws:
IOException
-
read
- Throws:
IOException
-
write
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-
flush
- Throws:
IOException
-