Class IOWorker
java.lang.Object
net.minecraft.world.level.chunk.storage.IOWorker
- All Implemented Interfaces:
- AutoCloseable,- ChunkScanAccess
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescription(package private) static class(package private) static enum
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate final ProcessorMailbox<StrictQueue.IntRunnable>private final Map<ChunkPos,IOWorker.PendingStore> private static final intprivate final it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap<CompletableFuture<BitSet>>private final AtomicBooleanprivate final RegionFileStorage
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()private CompletableFuture<BitSet>createOldDataForRegion(int p_223490_, int p_223491_) private CompletableFuture<BitSet>getOrCreateOldDataForRegion(int p_223464_, int p_223465_) private booleanisOldChunk(CompoundTag p_223485_) booleanisOldChunkAround(ChunkPos p_223472_, int p_223473_) private voidrunStore(ChunkPos p_63536_, IOWorker.PendingStore p_63537_) scanChunk(ChunkPos p_196939_, StreamTagVisitor p_196940_) store(ChunkPos p_63539_, CompoundTag p_63540_) private voidprivate <T> CompletableFuture<T>submitTask(Supplier<com.mojang.datafixers.util.Either<T, Exception>> p_63546_) synchronize(boolean p_182499_) private void
- 
Field Details- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
shutdownRequested
- 
mailbox
- 
storage
- 
pendingWrites
- 
regionCacheForBlenderprivate final it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap<CompletableFuture<BitSet>> regionCacheForBlender
- 
REGION_CACHE_SIZEprivate static final int REGION_CACHE_SIZE- See Also:
 
 
- 
- 
Constructor Details- 
IOWorker
 
- 
- 
Method Details- 
isOldChunkAround
- 
getOrCreateOldDataForRegion
- 
createOldDataForRegion
- 
isOldChunk
- 
store
- 
loadAsync
- 
synchronize
- 
scanChunk- Specified by:
- scanChunkin interface- ChunkScanAccess
 
- 
submitTaskprivate <T> CompletableFuture<T> submitTask(Supplier<com.mojang.datafixers.util.Either<T, Exception>> p_63546_) 
- 
storePendingChunkprivate void storePendingChunk()
- 
tellStorePendingprivate void tellStorePending()
- 
runStore
- 
close- Specified by:
- closein interface- AutoCloseable
- Throws:
- IOException
 
 
-