Class RegionFileStorage
java.lang.Object
net.minecraft.world.level.chunk.storage.RegionFileStorage
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprivate final Pathprivate static final intprivate final it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap<RegionFile>private final boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidflush()private RegionFilegetRegionFile(ChunkPos p_63712_) voidscanChunk(ChunkPos p_196957_, StreamTagVisitor p_196958_) protected voidwrite(ChunkPos p_63709_, CompoundTag p_63710_)
-
Field Details
-
ANVIL_EXTENSION
- See Also:
-
MAX_CACHE_SIZE
private static final int MAX_CACHE_SIZE- See Also:
-
regionCache
-
folder
-
sync
private final boolean sync
-
-
Constructor Details
-
RegionFileStorage
RegionFileStorage(Path p_196954_, boolean p_196955_)
-
-
Method Details
-
getRegionFile
- Throws:
IOException
-
read
- Throws:
IOException
-
scanChunk
- Throws:
IOException
-
write
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
flush
- Throws:
IOException
-