Class RegionFileStorage
java.lang.Object
net.minecraft.world.level.chunk.storage.RegionFileStorage
- All Implemented Interfaces:
- AutoCloseable
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringprivate final Pathprivate static final intprivate final it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap<RegionFile>private final boolean
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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_SIZEprivate static final int MAX_CACHE_SIZE- See Also:
 
- 
regionCache
- 
folder
- 
syncprivate final boolean sync
 
- 
- 
Constructor Details- 
RegionFileStorageRegionFileStorage(Path p_196954_, boolean p_196955_) 
 
- 
- 
Method Details- 
getRegionFile- Throws:
- IOException
 
- 
read- Throws:
- IOException
 
- 
scanChunk- Throws:
- IOException
 
- 
write- Throws:
- IOException
 
- 
close- Specified by:
- closein interface- AutoCloseable
- Throws:
- IOException
 
- 
flush- Throws:
- IOException
 
 
-