Class RegionFileStorage
java.lang.Object
net.minecraft.world.level.chunk.storage.RegionFileStorage
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
private final Path
private static final int
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_63712_) void
scanChunk
(ChunkPos p_196957_, StreamTagVisitor p_196958_) protected void
write
(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:
close
in interfaceAutoCloseable
- Throws:
IOException
-
flush
- Throws:
IOException
-