类 IOWorker
java.lang.Object
net.minecraft.world.level.chunk.storage.IOWorker
- 所有已实现的接口:
AutoCloseable
,ChunkScanAccess
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private static final org.slf4j.Logger
private final ProcessorMailbox<StrictQueue.IntRunnable>
private final Map<ChunkPos,
IOWorker.PendingStore> private static final int
private final it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap<CompletableFuture<BitSet>>
private final AtomicBoolean
private final RegionFileStorage
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
close()
private CompletableFuture<BitSet>
createOldDataForRegion
(int pChunkX, int pChunkZ) private CompletableFuture<BitSet>
getOrCreateOldDataForRegion
(int pChunkX, int pChunkZ) private boolean
isOldChunk
(CompoundTag pChunkData) boolean
isOldChunkAround
(ChunkPos pChunkPos, int pRadius) private void
runStore
(ChunkPos pChunkPos, IOWorker.PendingStore pPendingStore) scanChunk
(ChunkPos pChunkPos, StreamTagVisitor pVisitor) store
(ChunkPos pChunkPos, CompoundTag pChunkData) private void
private <T> CompletableFuture<T>
submitTask
(Supplier<com.mojang.datafixers.util.Either<T, Exception>> pTask) synchronize
(boolean pFlushStorage) private void
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
shutdownRequested
-
mailbox
-
storage
-
pendingWrites
-
regionCacheForBlender
private final it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap<CompletableFuture<BitSet>> regionCacheForBlender -
REGION_CACHE_SIZE
private static final int REGION_CACHE_SIZE- 另请参阅:
-
-
构造器详细资料
-
IOWorker
-
-
方法详细资料
-
isOldChunkAround
-
getOrCreateOldDataForRegion
-
createOldDataForRegion
-
isOldChunk
-
store
-
loadAsync
-
synchronize
-
scanChunk
- 指定者:
scanChunk
在接口中ChunkScanAccess
-
submitTask
private <T> CompletableFuture<T> submitTask(Supplier<com.mojang.datafixers.util.Either<T, Exception>> pTask) -
storePendingChunk
private void storePendingChunk() -
tellStorePending
private void tellStorePending() -
runStore
-
close
- 指定者:
close
在接口中AutoCloseable
- 抛出:
IOException
-