类 IOWorker
java.lang.Object
net.minecraft.world.level.chunk.storage.IOWorker
- 所有已实现的接口:
AutoCloseable
,ChunkScanAccess
-
嵌套类概要
嵌套类修饰符和类型类说明(专用程序包) static class
(专用程序包) static enum
(专用程序包) static interface
-
字段概要
字段修饰符和类型字段说明private final PriorityConsecutiveExecutor
private static final org.slf4j.Logger
private final SequencedMap
<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 p_223490_, int p_223491_) private CompletableFuture
<BitSet> getOrCreateOldDataForRegion
(int p_223464_, int p_223465_) private boolean
isOldChunk
(CompoundTag p_223485_) boolean
isOldChunkAround
(ChunkPos p_223472_, int p_223473_) private void
runStore
(ChunkPos p_63536_, IOWorker.PendingStore p_63537_) scanChunk
(ChunkPos p_196939_, StreamTagVisitor p_196940_) store
(ChunkPos p_363895_, Supplier<CompoundTag> p_367671_) store
(ChunkPos p_63539_, CompoundTag p_63540_) private void
private <T> CompletableFuture
<T> submitTask
(Supplier<T> p_63546_) private <T> CompletableFuture
<T> submitThrowingTask
(IOWorker.ThrowingSupplier<T> p_363182_) synchronize
(boolean p_182499_) private void
private void
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
shutdownRequested
-
consecutiveExecutor
-
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
-
store
-
loadAsync
-
synchronize
-
scanChunk
- 指定者:
scanChunk
在接口中ChunkScanAccess
-
submitThrowingTask
-
submitTask
-
storePendingChunk
private void storePendingChunk() -
tellStorePending
private void tellStorePending() -
runStore
-
close
- 指定者:
close
在接口中AutoCloseable
- 抛出:
IOException
-
waitForShutdown
private void waitForShutdown() -
storageInfo
-