Class RegionBasedStorage

java.lang.Object
net.minecraft.world.storage.RegionBasedStorage
All Implemented Interfaces:
AutoCloseable

public final class RegionBasedStorage extends Object implements AutoCloseable
Mappings:
Namespace Name
named net/minecraft/world/storage/RegionBasedStorage
intermediary net/minecraft/class_2867
official dwq
  • Field Details

    • MCA_EXTENSION

      public static final String MCA_EXTENSION
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MCA_EXTENSION Lnet/minecraft/world/storage/RegionBasedStorage;MCA_EXTENSION:Ljava/lang/String;
      intermediary field_31425 Lnet/minecraft/class_2867;field_31425:Ljava/lang/String;
      official a Ldwq;a:Ljava/lang/String;
    • 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/RegionBasedStorage;MAX_CACHE_SIZE:I
      intermediary field_31426 Lnet/minecraft/class_2867;field_31426:I
      official b Ldwq;b:I
    • cachedRegionFiles

      private final Long2ObjectLinkedOpenHashMap<RegionFile> cachedRegionFiles
      Mappings:
      Namespace Name Mixin selector
      named cachedRegionFiles Lnet/minecraft/world/storage/RegionBasedStorage;cachedRegionFiles:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;
      intermediary field_17657 Lnet/minecraft/class_2867;field_17657:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;
      official c Ldwq;c:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;
    • storageKey

      private final StorageKey storageKey
      Mappings:
      Namespace Name Mixin selector
      named storageKey Lnet/minecraft/world/storage/RegionBasedStorage;storageKey:Lnet/minecraft/world/storage/StorageKey;
      intermediary field_49103 Lnet/minecraft/class_2867;field_49103:Lnet/minecraft/class_9240;
      official d Ldwq;d:Ldws;
    • directory

      private final Path directory
      Mappings:
      Namespace Name Mixin selector
      named directory Lnet/minecraft/world/storage/RegionBasedStorage;directory:Ljava/nio/file/Path;
      intermediary field_18690 Lnet/minecraft/class_2867;field_18690:Ljava/nio/file/Path;
      official e Ldwq;e:Ljava/nio/file/Path;
    • dsync

      private final boolean dsync
      Mappings:
      Namespace Name Mixin selector
      named dsync Lnet/minecraft/world/storage/RegionBasedStorage;dsync:Z
      intermediary field_23748 Lnet/minecraft/class_2867;field_23748:Z
      official f Ldwq;f:Z
  • Constructor Details

    • RegionBasedStorage

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

    • getRegionFile

      private RegionFile getRegionFile(ChunkPos pos) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named getRegionFile Lnet/minecraft/world/storage/RegionBasedStorage;getRegionFile(Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/world/storage/RegionFile;
      intermediary method_12440 Lnet/minecraft/class_2867;method_12440(Lnet/minecraft/class_1923;)Lnet/minecraft/class_2861;
      official b Ldwq;b(Ldcd;)Ldwp;
    • getTagAt

      @Nullable public @Nullable NbtCompound getTagAt(ChunkPos pos) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named getTagAt Lnet/minecraft/world/storage/RegionBasedStorage;getTagAt(Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/nbt/NbtCompound;
      intermediary method_17911 Lnet/minecraft/class_2867;method_17911(Lnet/minecraft/class_1923;)Lnet/minecraft/class_2487;
      official a Ldwq;a(Ldcd;)Lub;
    • scanChunk

      public void scanChunk(ChunkPos chunkPos, NbtScanner scanner) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named scanChunk Lnet/minecraft/world/storage/RegionBasedStorage;scanChunk(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/nbt/scanner/NbtScanner;)V
      intermediary method_39802 Lnet/minecraft/class_2867;method_39802(Lnet/minecraft/class_1923;Lnet/minecraft/class_6836;)V
      official a Ldwq;a(Ldcd;Luv;)V
    • write

      protected void write(ChunkPos pos, @Nullable @Nullable NbtCompound nbt) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named write Lnet/minecraft/world/storage/RegionBasedStorage;write(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/nbt/NbtCompound;)V
      intermediary method_23726 Lnet/minecraft/class_2867;method_23726(Lnet/minecraft/class_1923;Lnet/minecraft/class_2487;)V
      official a Ldwq;a(Ldcd;Lub;)V
    • close

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

      public void sync() throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      named sync Lnet/minecraft/world/storage/RegionBasedStorage;sync()V
      intermediary method_26982 Lnet/minecraft/class_2867;method_26982()V
      official a Ldwq;a()V
    • getStorageKey

      public StorageKey getStorageKey()
      Mappings:
      Namespace Name Mixin selector
      named getStorageKey Lnet/minecraft/world/storage/RegionBasedStorage;getStorageKey()Lnet/minecraft/world/storage/StorageKey;
      intermediary method_61005 Lnet/minecraft/class_2867;method_61005()Lnet/minecraft/class_9240;
      official b Ldwq;b()Ldws;