Class RegionFileCache
java.lang.Object
net.minecraft.world.chunk.storage.RegionFileCache
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Fileprivate final it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap<RegionFile>private final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidflush()private RegionFilegetRegionFile(ChunkPos p_219098_1_) protected voidwrite(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:
closein interfaceAutoCloseable- Throws:
IOException
-
flush
- Throws:
IOException
-