Package net.minecraft.world.storage
Class StorageIoWorker
java.lang.Object
net.minecraft.world.storage.StorageIoWorker
- All Implemented Interfaces:
AutoCloseable,NbtScannable
- Mappings:
Namespace Name named net/minecraft/world/storage/StorageIoWorkerintermediary net/minecraft/class_4698official eez
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static interfaceprivate static enumprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Long2ObjectLinkedOpenHashMap<CompletableFuture<BitSet>> private final AtomicBooleanprivate final PrioritizedConsecutiveExecutorprivate static final Loggerprivate static final intprivate final SequencedMap<ChunkPos, StorageIoWorker.Result> private final RegionBasedStorage -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStorageIoWorker(StorageKey storageKey, Path directory, boolean dsync) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()completeAll(boolean sync) private CompletableFuture<BitSet> computeBlendingStatus(int chunkX, int chunkZ) private CompletableFuture<BitSet> getOrComputeBlendingStatus(int chunkX, int chunkZ) private booleanneedsBlending(NbtCompound nbt) booleanneedsBlending(ChunkPos chunkPos, int checkRadius) readChunkData(ChunkPos pos) private <T> CompletableFuture<T> private <T> CompletableFuture<T> run(StorageIoWorker.Callable<T> task) private voidscanChunk(ChunkPos pos, NbtScanner scanner) setResult(ChunkPos pos, Supplier<NbtCompound> nbtSupplier) setResult(ChunkPos pos, @Nullable NbtCompound nbt) private voidwrite(ChunkPos pos, StorageIoWorker.Result result) private voidprivate void
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/world/storage/StorageIoWorker;LOGGER:Lorg/slf4j/Logger;intermediary field_21495Lnet/minecraft/class_4698;field_21495:Lorg/slf4j/Logger;official aLeez;a:Lorg/slf4j/Logger;
-
MAX_CACHE_SIZE
private static final int MAX_CACHE_SIZE- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_CACHE_SIZELnet/minecraft/world/storage/StorageIoWorker;MAX_CACHE_SIZE:Iintermediary field_38241Lnet/minecraft/class_4698;field_38241:Iofficial gLeez;g:I
-
closed
- Mappings:
Namespace Name Mixin selector named closedLnet/minecraft/world/storage/StorageIoWorker;closed:Ljava/util/concurrent/atomic/AtomicBoolean;intermediary field_21497Lnet/minecraft/class_4698;field_21497:Ljava/util/concurrent/atomic/AtomicBoolean;official bLeez;b:Ljava/util/concurrent/atomic/AtomicBoolean;
-
executor
- Mappings:
Namespace Name Mixin selector named executorLnet/minecraft/world/storage/StorageIoWorker;executor:Lnet/minecraft/util/thread/PrioritizedConsecutiveExecutor;intermediary field_54149Lnet/minecraft/class_4698;field_54149:Lnet/minecraft/class_10177;official cLeez;c:Lbtu;
-
storage
- Mappings:
Namespace Name Mixin selector named storageLnet/minecraft/world/storage/StorageIoWorker;storage:Lnet/minecraft/world/storage/RegionBasedStorage;intermediary field_21499Lnet/minecraft/class_4698;field_21499:Lnet/minecraft/class_2867;official dLeez;d:Lefe;
-
results
- Mappings:
Namespace Name Mixin selector named resultsLnet/minecraft/world/storage/StorageIoWorker;results:Ljava/util/SequencedMap;intermediary field_21500Lnet/minecraft/class_4698;field_21500:Ljava/util/SequencedMap;official eLeez;e:Ljava/util/SequencedMap;
-
blendingStatusCaches
- Mappings:
Namespace Name Mixin selector named blendingStatusCachesLnet/minecraft/world/storage/StorageIoWorker;blendingStatusCaches:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;intermediary field_38240Lnet/minecraft/class_4698;field_38240:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;official fLeez;f:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;
-
-
Constructor Details
-
StorageIoWorker
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/world/storage/StorageIoWorker;<init>(Lnet/minecraft/world/storage/StorageKey;Ljava/nio/file/Path;Z)Vintermediary <init>Lnet/minecraft/class_4698;<init>(Lnet/minecraft/class_9240;Ljava/nio/file/Path;Z)Vofficial <init>Leez;<init>(Lefg;Ljava/nio/file/Path;Z)V
-
-
Method Details
-
needsBlending
- Mappings:
Namespace Name Mixin selector named needsBlendingLnet/minecraft/world/storage/StorageIoWorker;needsBlending(Lnet/minecraft/util/math/ChunkPos;I)Zintermediary method_42330Lnet/minecraft/class_4698;method_42330(Lnet/minecraft/class_1923;I)Zofficial aLeez;a(Ldjo;I)Z
-
getOrComputeBlendingStatus
- Mappings:
Namespace Name Mixin selector named getOrComputeBlendingStatusLnet/minecraft/world/storage/StorageIoWorker;getOrComputeBlendingStatus(II)Ljava/util/concurrent/CompletableFuture;intermediary method_42329Lnet/minecraft/class_4698;method_42329(II)Ljava/util/concurrent/CompletableFuture;official aLeez;a(II)Ljava/util/concurrent/CompletableFuture;
-
computeBlendingStatus
- Mappings:
Namespace Name Mixin selector named computeBlendingStatusLnet/minecraft/world/storage/StorageIoWorker;computeBlendingStatus(II)Ljava/util/concurrent/CompletableFuture;intermediary method_42333Lnet/minecraft/class_4698;method_42333(II)Ljava/util/concurrent/CompletableFuture;official bLeez;b(II)Ljava/util/concurrent/CompletableFuture;
-
needsBlending
- Mappings:
Namespace Name Mixin selector named needsBlendingLnet/minecraft/world/storage/StorageIoWorker;needsBlending(Lnet/minecraft/nbt/NbtCompound;)Zintermediary method_42332Lnet/minecraft/class_4698;method_42332(Lnet/minecraft/class_2487;)Zofficial aLeez;a(Lua;)Z
-
setResult
- Mappings:
Namespace Name Mixin selector named setResultLnet/minecraft/world/storage/StorageIoWorker;setResult(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/nbt/NbtCompound;)Ljava/util/concurrent/CompletableFuture;intermediary method_23703Lnet/minecraft/class_4698;method_23703(Lnet/minecraft/class_1923;Lnet/minecraft/class_2487;)Ljava/util/concurrent/CompletableFuture;official aLeez;a(Ldjo;Lua;)Ljava/util/concurrent/CompletableFuture;
-
setResult
- Mappings:
Namespace Name Mixin selector named setResultLnet/minecraft/world/storage/StorageIoWorker;setResult(Lnet/minecraft/util/math/ChunkPos;Ljava/util/function/Supplier;)Ljava/util/concurrent/CompletableFuture;intermediary method_61773Lnet/minecraft/class_4698;method_61773(Lnet/minecraft/class_1923;Ljava/util/function/Supplier;)Ljava/util/concurrent/CompletableFuture;official aLeez;a(Ldjo;Ljava/util/function/Supplier;)Ljava/util/concurrent/CompletableFuture;
-
readChunkData
- Mappings:
Namespace Name Mixin selector named readChunkDataLnet/minecraft/world/storage/StorageIoWorker;readChunkData(Lnet/minecraft/util/math/ChunkPos;)Ljava/util/concurrent/CompletableFuture;intermediary method_31738Lnet/minecraft/class_4698;method_31738(Lnet/minecraft/class_1923;)Ljava/util/concurrent/CompletableFuture;official aLeez;a(Ldjo;)Ljava/util/concurrent/CompletableFuture;
-
completeAll
- Mappings:
Namespace Name Mixin selector named completeAllLnet/minecraft/world/storage/StorageIoWorker;completeAll(Z)Ljava/util/concurrent/CompletableFuture;intermediary method_23698Lnet/minecraft/class_4698;method_23698(Z)Ljava/util/concurrent/CompletableFuture;official aLeez;a(Z)Ljava/util/concurrent/CompletableFuture;
-
scanChunk
- Specified by:
scanChunkin interfaceNbtScannable- Mappings:
Namespace Name Mixin selector named scanChunkLnet/minecraft/world/storage/NbtScannable;scanChunk(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/nbt/scanner/NbtScanner;)Ljava/util/concurrent/CompletableFuture;intermediary method_39795Lnet/minecraft/class_6830;method_39795(Lnet/minecraft/class_1923;Lnet/minecraft/class_6836;)Ljava/util/concurrent/CompletableFuture;official aLeew;a(Ldjo;Lux;)Ljava/util/concurrent/CompletableFuture;
-
run
- Mappings:
Namespace Name Mixin selector named runLnet/minecraft/world/storage/StorageIoWorker;run(Lnet/minecraft/world/storage/StorageIoWorker$Callable;)Ljava/util/concurrent/CompletableFuture;intermediary method_64026Lnet/minecraft/class_4698;method_64026(Lnet/minecraft/class_4698$class_10195;)Ljava/util/concurrent/CompletableFuture;official aLeez;a(Leez$c;)Ljava/util/concurrent/CompletableFuture;
-
run
- Mappings:
Namespace Name Mixin selector named runLnet/minecraft/world/storage/StorageIoWorker;run(Ljava/util/function/Supplier;)Ljava/util/concurrent/CompletableFuture;intermediary method_23709Lnet/minecraft/class_4698;method_23709(Ljava/util/function/Supplier;)Ljava/util/concurrent/CompletableFuture;official aLeez;a(Ljava/util/function/Supplier;)Ljava/util/concurrent/CompletableFuture;
-
writeResult
private void writeResult()- Mappings:
Namespace Name Mixin selector named writeResultLnet/minecraft/world/storage/StorageIoWorker;writeResult()Vintermediary method_23719Lnet/minecraft/class_4698;method_23719()Vofficial bLeez;b()V
-
writeRemainingResults
private void writeRemainingResults()- Mappings:
Namespace Name Mixin selector named writeRemainingResultsLnet/minecraft/world/storage/StorageIoWorker;writeRemainingResults()Vintermediary method_27945Lnet/minecraft/class_4698;method_27945()Vofficial cLeez;c()V
-
write
- Mappings:
Namespace Name Mixin selector named writeLnet/minecraft/world/storage/StorageIoWorker;write(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/storage/StorageIoWorker$Result;)Vintermediary method_23701Lnet/minecraft/class_4698;method_23701(Lnet/minecraft/class_1923;Lnet/minecraft/class_4698$class_4699;)Vofficial aLeez;a(Ldjo;Leez$a;)V
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
runRemainingTasks
private void runRemainingTasks()- Mappings:
Namespace Name Mixin selector named runRemainingTasksLnet/minecraft/world/storage/StorageIoWorker;runRemainingTasks()Vintermediary method_64030Lnet/minecraft/class_4698;method_64030()Vofficial dLeez;d()V
-
getStorageKey
- Mappings:
Namespace Name Mixin selector named getStorageKeyLnet/minecraft/world/storage/StorageIoWorker;getStorageKey()Lnet/minecraft/world/storage/StorageKey;intermediary method_61004Lnet/minecraft/class_4698;method_61004()Lnet/minecraft/class_9240;official aLeez;a()Lefg;
-