Class RegionFileCache
java.lang.Object
net.minecraft.world.chunk.storage.RegionFileCache
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Modifier and TypeFieldDescriptionprivate final File
private final it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap<RegionFile>
private final boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
flush()
private RegionFile
getRegionFile
(ChunkPos p_219098_1_) protected void
write
(ChunkPos p_219100_1_, CompoundNBT p_219100_2_)
-
Field Details
-
regionCache
-
folder
-
sync
private final boolean sync
-
-
Constructor Details
-
RegionFileCache
RegionFileCache(File p_i231895_1_, boolean p_i231895_2_)
-
-
Method Details
-
getRegionFile
- Throws:
IOException
-
read
- Throws:
IOException
-
write
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-
flush
- Throws:
IOException
-