Class IOWorker
java.lang.Object
net.minecraft.world.chunk.storage.IOWorker
- All Implemented Interfaces:
AutoCloseable
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
(package private) static enum
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.apache.logging.log4j.Logger
private final DelegatedTaskExecutor<ITaskQueue.RunnableWithPriority>
private final Map<ChunkPos,
IOWorker.Entry> private final AtomicBoolean
private final RegionFileCache
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
private void
runStore
(ChunkPos p_227091_1_, IOWorker.Entry p_227091_2_) store
(ChunkPos p_227093_1_, CompoundNBT p_227093_2_) private void
private <T> CompletableFuture<T>
submitTask
(Supplier<com.mojang.datafixers.util.Either<T, Exception>> p_235975_1_) 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
-
synchronize
-
submitTask
private <T> CompletableFuture<T> submitTask(Supplier<com.mojang.datafixers.util.Either<T, Exception>> p_235975_1_) -
storePendingChunk
private void storePendingChunk() -
tellStorePending
private void tellStorePending() -
runStore
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-