net.minecraft.world.level.chunk.storage

public class IOWorker

implements ChunkScanAccess, AutoCloseable

dwl
net.minecraft.world.level.chunk.storage.IOWorker
net.minecraft.class_4698
net.minecraft.world.storage.StorageIoWorker
net.minecraft.src.C_2160_
net.minecraft.world.level.chunk.storage.IOWorker

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
a
LOGGER
field_21495
LOGGER
f_63515_
private final AtomicBoolean
b
shutdownRequested
field_21497
closed
f_63516_
private final ProcessorMailbox<StrictQueue$IntRunnable>
c
mailbox
field_24468
executor
f_63517_
private final RegionFileStorage
d
storage
field_21499
storage
f_63518_
private final Map<ChunkPos, IOWorker$PendingStore>
e
pendingWrites
field_21500
results
f_63519_
private final it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap<CompletableFuture<BitSet>>
f
regionCacheForBlender
field_38240
blendingStatusCaches
f_223459_
private static final int
g
REGION_CACHE_SIZE
field_38241
MAX_CACHE_SIZE
f_223460_

Constructor summary

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

Method summary

Modifier and TypeMethod
public boolean
a(dcd arg0, int arg1)
isOldChunkAround(ChunkPos arg0, int arg1)
method_42330(class_1923 arg0, int arg1)
needsBlending(ChunkPos chunkPos, int checkRadius)
m_223471_(C_1560_ p_223473_, int arg1)
private CompletableFuture<BitSet>
a(int arg0, int arg1)
getOrCreateOldDataForRegion(int arg0, int arg1)
method_42329(int arg0, int arg1)
getOrComputeBlendingStatus(int chunkX, int chunkZ)
m_223463_(int p_223465_, int arg1)
private CompletableFuture<BitSet>
b(int arg0, int arg1)
createOldDataForRegion(int arg0, int arg1)
method_42333(int arg0, int arg1)
computeBlendingStatus(int chunkX, int chunkZ)
m_223489_(int p_223491_, int arg1)
private boolean
a(ub arg0)
isOldChunk(CompoundTag arg0)
method_42332(class_2487 arg0)
needsBlending(NbtCompound nbt)
m_223484_(C_4917_ arg0)
public CompletableFuture<Void>
a(dcd arg0, ub arg1)
store(ChunkPos arg0, CompoundTag arg1)
method_23703(class_1923 arg0, class_2487 arg1)
setResult(ChunkPos pos, NbtCompound nbt)
m_63538_(C_1560_ p_63540_, C_4917_ arg1)
public CompletableFuture<Optional<CompoundTag>>
a(dcd arg0)
loadAsync(ChunkPos arg0)
method_31738(class_1923 arg0)
readChunkData(ChunkPos pos)
m_156587_(C_1560_ arg0)
public CompletableFuture<Void>
a(boolean arg0)
synchronize(boolean arg0)
method_23698(boolean arg0)
completeAll(boolean sync)
m_182498_(boolean arg0)
public CompletableFuture<Void>
a(dcd arg0, uv arg1)
scanChunk(ChunkPos arg0, StreamTagVisitor arg1)
method_39795(class_1923 arg0, class_6836 arg1)
scanChunk(ChunkPos arg0, NbtScanner arg1)
m_196358_(C_1560_ p_196940_, C_196121_ arg1)
private <T> CompletableFuture<T>
a(Supplier<com.mojang.datafixers.util.Either<T, Exception>> arg0)
submitTask(Supplier<com.mojang.datafixers.util.Either<T, Exception>> arg0)
method_23709(Supplier<com.mojang.datafixers.util.Either<T, Exception>> arg0)
run(Supplier<com.mojang.datafixers.util.Either<T, Exception>> task)
m_63545_(Supplier<com.mojang.datafixers.util.Either<T, Exception>> arg0)
private void
b()
storePendingChunk()
method_23719()
writeResult()
m_63553_()
private void
c()
tellStorePending()
method_27945()
writeRemainingResults()
m_63561_()
private void
a(dcd arg0, dwl$a arg1)
runStore(ChunkPos arg0, IOWorker$PendingStore arg1)
method_23701(class_1923 arg0, class_4698$class_4699 arg1)
write(ChunkPos pos, StorageIoWorker$Result result)
m_63535_(C_1560_ p_63537_, C_2160_$C_2161_ arg1)
public void
close()
close()
close()
public RegionStorageInfo
a()
storageInfo()
method_61004()
getStorageKey()
m_340351_()