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 final RegionStorageInfo
private static final int
private final it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap
<RegionFile> private final boolean
-
Constructor Summary
ConstructorDescriptionRegionFileStorage
(RegionStorageInfo p_330451_, Path p_196954_, boolean p_196955_) -
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
-
info
-
folder
-
sync
private final boolean sync
-
-
Constructor Details
-
RegionFileStorage
RegionFileStorage(RegionStorageInfo p_330451_, 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
-