Package net.minecraft.world.storage
Class StorageIoWorker
java.lang.Object
net.minecraft.world.storage.StorageIoWorker
- All Implemented Interfaces:
AutoCloseable
public class StorageIoWorker extends Object implements AutoCloseable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classStorageIoWorker.Priority(package private) static classStorageIoWorker.Result -
Field Summary
Fields Modifier and Type Field Description private AtomicBooleanclosedprivate TaskExecutor<TaskQueue.PrioritizedTask>field_24468private static LoggerLOGGERprivate Map<ChunkPos,StorageIoWorker.Result>resultsprivate RegionBasedStoragestorage -
Constructor Summary
Constructors Modifier Constructor Description protectedStorageIoWorker(File file, boolean bool, String string) -
Method Summary
Modifier and Type Method Description voidclose()CompletableFuture<Void>completeAll()CompoundTaggetNbt(ChunkPos pos)private voidmethod_27945()protected CompletableFuture<CompoundTag>method_31738(ChunkPos chunkPos)private <T> CompletableFuture<T>run(Supplier<com.mojang.datafixers.util.Either<T,Exception>> supplier)CompletableFuture<Void>setResult(ChunkPos pos, CompoundTag nbt)private voidwrite(ChunkPos pos, StorageIoWorker.Result result)private voidwriteResult()
-
Field Details
-
LOGGER
-
closed
-
field_24468
-
storage
-
results
-
-
Constructor Details
-
StorageIoWorker
-
-
Method Details
-
setResult
-
getNbt
- Throws:
IOException
-
method_31738
-
completeAll
-
run
private <T> CompletableFuture<T> run(Supplier<com.mojang.datafixers.util.Either<T,Exception>> supplier) -
writeResult
private void writeResult() -
method_27945
private void method_27945() -
write
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-