Class IOWorker
java.lang.Object
net.minecraft.world.level.chunk.storage.IOWorker
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
(package private) static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static org.apache.logging.log4j.Logger
private ProcessorMailbox<StrictQueue.IntRunnable>
private Map<ChunkPos,IOWorker.PendingStore>
private AtomicBoolean
private RegionFileStorage
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected CompletableFuture<CompoundTag>
private void
runStore(ChunkPos p_63536_, IOWorker.PendingStore p_63537_)
store(ChunkPos p_63539_, CompoundTag p_63540_)
private void
private <T> CompletableFuture<T>
submitTask(Supplier<com.mojang.datafixers.util.Either<T,Exception>> p_63546_)
synchronize(boolean p_182499_)
private void
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
shutdownRequested
-
mailbox
-
storage
-
pendingWrites
-
-
Constructor Details
-
IOWorker
-
-
Method Details
-
store
-
load
- Throws:
IOException
-
loadAsync
-
synchronize
-
submitTask
private <T> CompletableFuture<T> submitTask(Supplier<com.mojang.datafixers.util.Either<T,Exception>> p_63546_) -
storePendingChunk
private void storePendingChunk() -
tellStorePending
private void tellStorePending() -
runStore
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-