net.minecraft.world.storage

public class StorageIoWorker

implements AutoCloseable, NbtScannable

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

Field summary

Modifier and TypeField
public static final Supplier<NbtCompound>
STORE_EMPTY
STORE_EMPTY
field_63958
NULL_NBT_SUPPLIER
private static final org.slf4j.Logger
LOGGER
LOGGER
field_21495
LOGGER
private final AtomicBoolean
shutdownRequested
shutdownRequested
field_21497
closed
private final PrioritizedConsecutiveExecutor
consecutiveExecutor
consecutiveExecutor
field_54149
executor
private final RegionBasedStorage
storage
storage
field_21499
storage
private final SequencedMap<ChunkPos, StorageIoWorker$Result>
pendingWrites
pendingWrites
field_21500
results
private final it.unimi.dsi.fastutil.longs.Long2ObjectLinkedOpenHashMap<CompletableFuture<BitSet>>
regionCacheForBlender
regionCacheForBlender
field_38240
blendingStatusCaches
private static final int
REGION_CACHE_SIZE
REGION_CACHE_SIZE
field_38241
MAX_CACHE_SIZE

Constructor summary

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

Method summary

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