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
- Mappings:
Namespace Name official ckl
intermediary net/minecraft/class_4698
named net/minecraft/world/storage/StorageIoWorker
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
StorageIoWorker.Priority
(package private) static class
StorageIoWorker.Result
-
Field Summary
Fields Modifier and Type Field Description private AtomicBoolean
closed
private TaskExecutor<TaskQueue.PrioritizedTask>
executor
private static Logger
LOGGER
private Map<ChunkPos,StorageIoWorker.Result>
results
private RegionBasedStorage
storage
-
Constructor Summary
Constructors Modifier Constructor Description protected
StorageIoWorker(File directory, boolean dsync, String name)
-
Method Summary
Modifier and Type Method Description void
close()
CompletableFuture<Void>
completeAll()
CompoundTag
getNbt(ChunkPos pos)
private void
method_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 void
write(ChunkPos pos, StorageIoWorker.Result result)
private void
writeResult()
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Lckl;a:Lorg/apache/logging/log4j/Logger;
intermediary field_21495
Lnet/minecraft/class_4698;field_21495:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/world/storage/StorageIoWorker;LOGGER:Lorg/apache/logging/log4j/Logger;
-
closed
- Mappings:
Namespace Name Mixin selector official b
Lckl;b:Ljava/util/concurrent/atomic/AtomicBoolean;
intermediary field_21497
Lnet/minecraft/class_4698;field_21497:Ljava/util/concurrent/atomic/AtomicBoolean;
named closed
Lnet/minecraft/world/storage/StorageIoWorker;closed:Ljava/util/concurrent/atomic/AtomicBoolean;
-
executor
- Mappings:
Namespace Name Mixin selector official c
Lckl;c:Lapa;
intermediary field_24468
Lnet/minecraft/class_4698;field_24468:Lnet/minecraft/class_3846;
named executor
Lnet/minecraft/world/storage/StorageIoWorker;executor:Lnet/minecraft/util/thread/TaskExecutor;
-
storage
- Mappings:
Namespace Name Mixin selector official d
Lckl;d:Lckp;
intermediary field_21499
Lnet/minecraft/class_4698;field_21499:Lnet/minecraft/class_2867;
named storage
Lnet/minecraft/world/storage/StorageIoWorker;storage:Lnet/minecraft/world/storage/RegionBasedStorage;
-
results
- Mappings:
Namespace Name Mixin selector official e
Lckl;e:Ljava/util/Map;
intermediary field_21500
Lnet/minecraft/class_4698;field_21500:Ljava/util/Map;
named results
Lnet/minecraft/world/storage/StorageIoWorker;results:Ljava/util/Map;
-
-
Constructor Details
-
StorageIoWorker
- Mappings:
Namespace Name Mixin selector official <init>
Lckl;<init>(Ljava/io/File;ZLjava/lang/String;)V
intermediary <init>
Lnet/minecraft/class_4698;<init>(Ljava/io/File;ZLjava/lang/String;)V
named <init>
Lnet/minecraft/world/storage/StorageIoWorker;<init>(Ljava/io/File;ZLjava/lang/String;)V
-
-
Method Details
-
setResult
- Mappings:
Namespace Name Mixin selector official a
Lckl;a(Lbta;Lmq;)Ljava/util/concurrent/CompletableFuture;
intermediary method_23703
Lnet/minecraft/class_4698;method_23703(Lnet/minecraft/class_1923;Lnet/minecraft/class_2487;)Ljava/util/concurrent/CompletableFuture;
named setResult
Lnet/minecraft/world/storage/StorageIoWorker;setResult(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/nbt/CompoundTag;)Ljava/util/concurrent/CompletableFuture;
-
getNbt
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lckl;a(Lbta;)Lmq;
intermediary method_23700
Lnet/minecraft/class_4698;method_23700(Lnet/minecraft/class_1923;)Lnet/minecraft/class_2487;
named getNbt
Lnet/minecraft/world/storage/StorageIoWorker;getNbt(Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/nbt/CompoundTag;
-
method_31738
- Mappings:
Namespace Name Mixin selector official b
Lckl;b(Lbta;)Ljava/util/concurrent/CompletableFuture;
intermediary method_31738
Lnet/minecraft/class_4698;method_31738(Lnet/minecraft/class_1923;)Ljava/util/concurrent/CompletableFuture;
named method_31738
Lnet/minecraft/world/storage/StorageIoWorker;method_31738(Lnet/minecraft/util/math/ChunkPos;)Ljava/util/concurrent/CompletableFuture;
-
completeAll
- Mappings:
Namespace Name Mixin selector official a
Lckl;a()Ljava/util/concurrent/CompletableFuture;
intermediary method_23698
Lnet/minecraft/class_4698;method_23698()Ljava/util/concurrent/CompletableFuture;
named completeAll
Lnet/minecraft/world/storage/StorageIoWorker;completeAll()Ljava/util/concurrent/CompletableFuture;
-
run
private <T> CompletableFuture<T> run(Supplier<com.mojang.datafixers.util.Either<T,Exception>> supplier)- Mappings:
Namespace Name Mixin selector official a
Lckl;a(Ljava/util/function/Supplier;)Ljava/util/concurrent/CompletableFuture;
intermediary method_23709
Lnet/minecraft/class_4698;method_23709(Ljava/util/function/Supplier;)Ljava/util/concurrent/CompletableFuture;
named run
Lnet/minecraft/world/storage/StorageIoWorker;run(Ljava/util/function/Supplier;)Ljava/util/concurrent/CompletableFuture;
-
writeResult
private void writeResult()- Mappings:
Namespace Name Mixin selector official b
Lckl;b()V
intermediary method_23719
Lnet/minecraft/class_4698;method_23719()V
named writeResult
Lnet/minecraft/world/storage/StorageIoWorker;writeResult()V
-
method_27945
private void method_27945()- Mappings:
Namespace Name Mixin selector official c
Lckl;c()V
intermediary method_27945
Lnet/minecraft/class_4698;method_27945()V
named method_27945
Lnet/minecraft/world/storage/StorageIoWorker;method_27945()V
-
write
- Mappings:
Namespace Name Mixin selector official a
Lckl;a(Lbta;Lckl$a;)V
intermediary method_23701
Lnet/minecraft/class_4698;method_23701(Lnet/minecraft/class_1923;Lnet/minecraft/class_4698$class_4699;)V
named write
Lnet/minecraft/world/storage/StorageIoWorker;write(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/storage/StorageIoWorker$Result;)V
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official close
Lckl;close()V
intermediary close
Lnet/minecraft/class_4698;close()V
named close
Lnet/minecraft/world/storage/StorageIoWorker;close()V
-