Class StorageIoWorker

java.lang.Object
net.minecraft.world.storage.StorageIoWorker
All Implemented Interfaces:
AutoCloseable, NbtScannable

public class StorageIoWorker extends Object implements NbtScannable, AutoCloseable
Mappings:
Namespace Name
named net/minecraft/world/storage/StorageIoWorker
intermediary net/minecraft/class_4698
official ebb
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/world/storage/StorageIoWorker;LOGGER:Lorg/slf4j/Logger;
      intermediary field_21495 Lnet/minecraft/class_4698;field_21495:Lorg/slf4j/Logger;
      official a Lebb;a:Lorg/slf4j/Logger;
    • MAX_CACHE_SIZE

      private static final int MAX_CACHE_SIZE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MAX_CACHE_SIZE Lnet/minecraft/world/storage/StorageIoWorker;MAX_CACHE_SIZE:I
      intermediary field_38241 Lnet/minecraft/class_4698;field_38241:I
      official g Lebb;g:I
    • closed

      private final AtomicBoolean closed
      Mappings:
      Namespace Name Mixin selector
      named closed Lnet/minecraft/world/storage/StorageIoWorker;closed:Ljava/util/concurrent/atomic/AtomicBoolean;
      intermediary field_21497 Lnet/minecraft/class_4698;field_21497:Ljava/util/concurrent/atomic/AtomicBoolean;
      official b Lebb;b:Ljava/util/concurrent/atomic/AtomicBoolean;
    • executor

      private final PrioritizedConsecutiveExecutor executor
      Mappings:
      Namespace Name Mixin selector
      named executor Lnet/minecraft/world/storage/StorageIoWorker;executor:Lnet/minecraft/util/thread/PrioritizedConsecutiveExecutor;
      intermediary field_54149 Lnet/minecraft/class_4698;field_54149:Lnet/minecraft/class_10177;
      official c Lebb;c:Lbsa;
    • storage

      private final RegionBasedStorage storage
      Mappings:
      Namespace Name Mixin selector
      named storage Lnet/minecraft/world/storage/StorageIoWorker;storage:Lnet/minecraft/world/storage/RegionBasedStorage;
      intermediary field_21499 Lnet/minecraft/class_4698;field_21499:Lnet/minecraft/class_2867;
      official d Lebb;d:Lebg;
    • results

      Mappings:
      Namespace Name Mixin selector
      named results Lnet/minecraft/world/storage/StorageIoWorker;results:Ljava/util/SequencedMap;
      intermediary field_21500 Lnet/minecraft/class_4698;field_21500:Ljava/util/SequencedMap;
      official e Lebb;e:Ljava/util/SequencedMap;
    • blendingStatusCaches

      private final Long2ObjectLinkedOpenHashMap<CompletableFuture<BitSet>> blendingStatusCaches
      Mappings:
      Namespace Name Mixin selector
      named blendingStatusCaches Lnet/minecraft/world/storage/StorageIoWorker;blendingStatusCaches:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;
      intermediary field_38240 Lnet/minecraft/class_4698;field_38240:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;
      official f Lebb;f:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;
  • Constructor Details

    • StorageIoWorker

      protected StorageIoWorker(StorageKey storageKey, Path directory, boolean dsync)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/storage/StorageIoWorker;<init>(Lnet/minecraft/world/storage/StorageKey;Ljava/nio/file/Path;Z)V
      intermediary <init> Lnet/minecraft/class_4698;<init>(Lnet/minecraft/class_9240;Ljava/nio/file/Path;Z)V
      official <init> Lebb;<init>(Lebi;Ljava/nio/file/Path;Z)V
  • Method Details

    • needsBlending

      public boolean needsBlending(ChunkPos chunkPos, int checkRadius)
      Mappings:
      Namespace Name Mixin selector
      named needsBlending Lnet/minecraft/world/storage/StorageIoWorker;needsBlending(Lnet/minecraft/util/math/ChunkPos;I)Z
      intermediary method_42330 Lnet/minecraft/class_4698;method_42330(Lnet/minecraft/class_1923;I)Z
      official a Lebb;a(Ldgn;I)Z
    • getOrComputeBlendingStatus

      private CompletableFuture<BitSet> getOrComputeBlendingStatus(int chunkX, int chunkZ)
      Mappings:
      Namespace Name Mixin selector
      named getOrComputeBlendingStatus Lnet/minecraft/world/storage/StorageIoWorker;getOrComputeBlendingStatus(II)Ljava/util/concurrent/CompletableFuture;
      intermediary method_42329 Lnet/minecraft/class_4698;method_42329(II)Ljava/util/concurrent/CompletableFuture;
      official a Lebb;a(II)Ljava/util/concurrent/CompletableFuture;
    • computeBlendingStatus

      private CompletableFuture<BitSet> computeBlendingStatus(int chunkX, int chunkZ)
      Mappings:
      Namespace Name Mixin selector
      named computeBlendingStatus Lnet/minecraft/world/storage/StorageIoWorker;computeBlendingStatus(II)Ljava/util/concurrent/CompletableFuture;
      intermediary method_42333 Lnet/minecraft/class_4698;method_42333(II)Ljava/util/concurrent/CompletableFuture;
      official b Lebb;b(II)Ljava/util/concurrent/CompletableFuture;
    • needsBlending

      private boolean needsBlending(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      named needsBlending Lnet/minecraft/world/storage/StorageIoWorker;needsBlending(Lnet/minecraft/nbt/NbtCompound;)Z
      intermediary method_42332 Lnet/minecraft/class_4698;method_42332(Lnet/minecraft/class_2487;)Z
      official a Lebb;a(Lux;)Z
    • setResult

      Mappings:
      Namespace Name Mixin selector
      named setResult Lnet/minecraft/world/storage/StorageIoWorker;setResult(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/nbt/NbtCompound;)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;
      official a Lebb;a(Ldgn;Lux;)Ljava/util/concurrent/CompletableFuture;
    • setResult

      public CompletableFuture<Void> setResult(ChunkPos pos, Supplier<NbtCompound> nbtSupplier)
      Mappings:
      Namespace Name Mixin selector
      named setResult Lnet/minecraft/world/storage/StorageIoWorker;setResult(Lnet/minecraft/util/math/ChunkPos;Ljava/util/function/Supplier;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_61773 Lnet/minecraft/class_4698;method_61773(Lnet/minecraft/class_1923;Ljava/util/function/Supplier;)Ljava/util/concurrent/CompletableFuture;
      official a Lebb;a(Ldgn;Ljava/util/function/Supplier;)Ljava/util/concurrent/CompletableFuture;
    • readChunkData

      public CompletableFuture<Optional<NbtCompound>> readChunkData(ChunkPos pos)
      Mappings:
      Namespace Name Mixin selector
      named readChunkData Lnet/minecraft/world/storage/StorageIoWorker;readChunkData(Lnet/minecraft/util/math/ChunkPos;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_31738 Lnet/minecraft/class_4698;method_31738(Lnet/minecraft/class_1923;)Ljava/util/concurrent/CompletableFuture;
      official a Lebb;a(Ldgn;)Ljava/util/concurrent/CompletableFuture;
    • completeAll

      public CompletableFuture<Void> completeAll(boolean sync)
      Mappings:
      Namespace Name Mixin selector
      named completeAll Lnet/minecraft/world/storage/StorageIoWorker;completeAll(Z)Ljava/util/concurrent/CompletableFuture;
      intermediary method_23698 Lnet/minecraft/class_4698;method_23698(Z)Ljava/util/concurrent/CompletableFuture;
      official a Lebb;a(Z)Ljava/util/concurrent/CompletableFuture;
    • scanChunk

      public CompletableFuture<Void> scanChunk(ChunkPos pos, NbtScanner scanner)
      Specified by:
      scanChunk in interface NbtScannable
      Mappings:
      Namespace Name Mixin selector
      named scanChunk Lnet/minecraft/world/storage/NbtScannable;scanChunk(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/nbt/scanner/NbtScanner;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_39795 Lnet/minecraft/class_6830;method_39795(Lnet/minecraft/class_1923;Lnet/minecraft/class_6836;)Ljava/util/concurrent/CompletableFuture;
      official a Leay;a(Ldgn;Lvr;)Ljava/util/concurrent/CompletableFuture;
    • run

      private <T> CompletableFuture<T> run(StorageIoWorker.Callable<T> task)
      Mappings:
      Namespace Name Mixin selector
      named run Lnet/minecraft/world/storage/StorageIoWorker;run(Lnet/minecraft/world/storage/StorageIoWorker$Callable;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_64026 Lnet/minecraft/class_4698;method_64026(Lnet/minecraft/class_4698$class_10195;)Ljava/util/concurrent/CompletableFuture;
      official a Lebb;a(Lebb$c;)Ljava/util/concurrent/CompletableFuture;
    • run

      private <T> CompletableFuture<T> run(Supplier<T> task)
      Mappings:
      Namespace Name Mixin selector
      named run Lnet/minecraft/world/storage/StorageIoWorker;run(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;
      official a Lebb;a(Ljava/util/function/Supplier;)Ljava/util/concurrent/CompletableFuture;
    • writeResult

      private void writeResult()
      Mappings:
      Namespace Name Mixin selector
      named writeResult Lnet/minecraft/world/storage/StorageIoWorker;writeResult()V
      intermediary method_23719 Lnet/minecraft/class_4698;method_23719()V
      official b Lebb;b()V
    • writeRemainingResults

      private void writeRemainingResults()
      Mappings:
      Namespace Name Mixin selector
      named writeRemainingResults Lnet/minecraft/world/storage/StorageIoWorker;writeRemainingResults()V
      intermediary method_27945 Lnet/minecraft/class_4698;method_27945()V
      official c Lebb;c()V
    • write

      private void write(ChunkPos pos, StorageIoWorker.Result result)
      Mappings:
      Namespace Name Mixin selector
      named write Lnet/minecraft/world/storage/StorageIoWorker;write(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/storage/StorageIoWorker$Result;)V
      intermediary method_23701 Lnet/minecraft/class_4698;method_23701(Lnet/minecraft/class_1923;Lnet/minecraft/class_4698$class_4699;)V
      official a Lebb;a(Ldgn;Lebb$a;)V
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Throws:
      IOException
    • runRemainingTasks

      private void runRemainingTasks()
      Mappings:
      Namespace Name Mixin selector
      named runRemainingTasks Lnet/minecraft/world/storage/StorageIoWorker;runRemainingTasks()V
      intermediary method_64030 Lnet/minecraft/class_4698;method_64030()V
      official d Lebb;d()V
    • getStorageKey

      public StorageKey getStorageKey()
      Mappings:
      Namespace Name Mixin selector
      named getStorageKey Lnet/minecraft/world/storage/StorageIoWorker;getStorageKey()Lnet/minecraft/world/storage/StorageKey;
      intermediary method_61004 Lnet/minecraft/class_4698;method_61004()Lnet/minecraft/class_9240;
      official a Lebb;a()Lebi;