net.minecraft.world.level.chunk.storage

public class IOWorker

implements ChunkScanAccess, AutoCloseable

ebc
net.minecraft.world.level.chunk.storage.IOWorker
net.minecraft.class_4698
net.minecraft.world.storage.StorageIoWorker
net.minecraft.world.level.chunk.storage.IOWorker

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
a
LOGGER
field_21495
LOGGER
private final AtomicBoolean
b
shutdownRequested
field_21497
closed
private final PriorityConsecutiveExecutor
c
consecutiveExecutor
field_54149
executor
private final RegionFileStorage
d
storage
field_21499
storage
private final SequencedMap<ChunkPos, IOWorker$PendingStore>
e
pendingWrites
field_21500
results
private final it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap<CompletableFuture<BitSet>>
f
regionCacheForBlender
field_38240
blendingStatusCaches
private static final int
g
REGION_CACHE_SIZE
field_38241
MAX_CACHE_SIZE

Constructor summary

ModifierConstructor
protected (RegionStorageInfo storageKey, Path directory, boolean dsync)

Method summary

Modifier and TypeMethod
public boolean
a(dgo arg0, int arg1)
isOldChunkAround(ChunkPos arg0, int arg1)
method_42330(class_1923 arg0, int arg1)
needsBlending(ChunkPos chunkPos, int checkRadius)
private CompletableFuture<BitSet>
a(int arg0, int arg1)
getOrCreateOldDataForRegion(int arg0, int arg1)
method_42329(int arg0, int arg1)
getOrComputeBlendingStatus(int chunkX, int chunkZ)
private CompletableFuture<BitSet>
b(int arg0, int arg1)
createOldDataForRegion(int arg0, int arg1)
method_42333(int arg0, int arg1)
computeBlendingStatus(int chunkX, int chunkZ)
private boolean
a(ux arg0)
isOldChunk(CompoundTag arg0)
method_42332(class_2487 arg0)
needsBlending(NbtCompound nbt)
public CompletableFuture<Void>
a(dgo arg0, ux arg1)
store(ChunkPos arg0, CompoundTag arg1)
method_23703(class_1923 arg0, class_2487 arg1)
setResult(ChunkPos pos, NbtCompound nbt)
public CompletableFuture<Void>
a(dgo arg0, Supplier<ux> arg1)
store(ChunkPos arg0, Supplier<CompoundTag> arg1)
method_61773(class_1923 arg0, Supplier<class_2487> arg1)
setResult(ChunkPos pos, Supplier<NbtCompound> nbtSupplier)
public CompletableFuture<Optional<CompoundTag>>
a(dgo arg0)
loadAsync(ChunkPos arg0)
method_31738(class_1923 arg0)
readChunkData(ChunkPos pos)
public CompletableFuture<Void>
a(boolean arg0)
synchronize(boolean arg0)
method_23698(boolean arg0)
completeAll(boolean sync)
public CompletableFuture<Void>
a(dgo arg0, vr arg1)
scanChunk(ChunkPos arg0, StreamTagVisitor arg1)
method_39795(class_1923 arg0, class_6836 arg1)
scanChunk(ChunkPos arg0, NbtScanner arg1)
private <T> CompletableFuture<T>
a(ebc$c<T> arg0)
submitThrowingTask(IOWorker$ThrowingSupplier<T> arg0)
method_64026(class_4698$class_10195<T> arg0)
run(StorageIoWorker$Callable<T> task)
private <T> CompletableFuture<T>
a(Supplier<T> arg0)
submitTask(Supplier<T> arg0)
method_23709(Supplier<T> arg0)
run(Supplier<T> task)
private void
b()
storePendingChunk()
method_23719()
writeResult()
private void
c()
tellStorePending()
method_27945()
writeRemainingResults()
private void
a(dgo arg0, ebc$a arg1)
runStore(ChunkPos arg0, IOWorker$PendingStore arg1)
method_23701(class_1923 arg0, class_4698$class_4699 arg1)
write(ChunkPos pos, StorageIoWorker$Result result)
public void
close()
close()
private void
d()
waitForShutdown()
method_64030()
runRemainingTasks()
public RegionStorageInfo
a()
storageInfo()
method_61004()
getStorageKey()