Package net.minecraft.world.storage
Class RegionBasedStorage
java.lang.Object
net.minecraft.world.storage.RegionBasedStorage
- All Implemented Interfaces:
AutoCloseable
- Mappings:
Namespace Name named net/minecraft/world/storage/RegionBasedStorageintermediary net/minecraft/class_2867official dvo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Long2ObjectLinkedOpenHashMap<RegionFile> private final Pathprivate final booleanprivate static final intstatic final Stringprivate final StorageKey -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private RegionFilegetRegionFile(ChunkPos pos) voidscanChunk(ChunkPos chunkPos, NbtScanner scanner) voidsync()protected voidwrite(ChunkPos pos, @Nullable NbtCompound nbt)
-
Field Details
-
MCA_EXTENSION
- See Also:
- Mappings:
Namespace Name Mixin selector named MCA_EXTENSIONLnet/minecraft/world/storage/RegionBasedStorage;MCA_EXTENSION:Ljava/lang/String;intermediary field_31425Lnet/minecraft/class_2867;field_31425:Ljava/lang/String;official aLdvo;a:Ljava/lang/String;
-
MAX_CACHE_SIZE
private static final int MAX_CACHE_SIZE- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_CACHE_SIZELnet/minecraft/world/storage/RegionBasedStorage;MAX_CACHE_SIZE:Iintermediary field_31426Lnet/minecraft/class_2867;field_31426:Iofficial bLdvo;b:I
-
cachedRegionFiles
- Mappings:
Namespace Name Mixin selector named cachedRegionFilesLnet/minecraft/world/storage/RegionBasedStorage;cachedRegionFiles:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;intermediary field_17657Lnet/minecraft/class_2867;field_17657:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;official cLdvo;c:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;
-
storageKey
- Mappings:
Namespace Name Mixin selector named storageKeyLnet/minecraft/world/storage/RegionBasedStorage;storageKey:Lnet/minecraft/world/storage/StorageKey;intermediary field_49103Lnet/minecraft/class_2867;field_49103:Lnet/minecraft/class_9240;official dLdvo;d:Ldvq;
-
directory
- Mappings:
Namespace Name Mixin selector named directoryLnet/minecraft/world/storage/RegionBasedStorage;directory:Ljava/nio/file/Path;intermediary field_18690Lnet/minecraft/class_2867;field_18690:Ljava/nio/file/Path;official eLdvo;e:Ljava/nio/file/Path;
-
dsync
private final boolean dsync- Mappings:
Namespace Name Mixin selector named dsyncLnet/minecraft/world/storage/RegionBasedStorage;dsync:Zintermediary field_23748Lnet/minecraft/class_2867;field_23748:Zofficial fLdvo;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)Vintermediary <init>Lnet/minecraft/class_2867;<init>(Lnet/minecraft/class_9240;Ljava/nio/file/Path;Z)Vofficial <init>Ldvo;<init>(Ldvq;Ljava/nio/file/Path;Z)V
-
-
Method Details
-
getRegionFile
- Throws:
IOException- Mappings:
Namespace Name Mixin selector named getRegionFileLnet/minecraft/world/storage/RegionBasedStorage;getRegionFile(Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/world/storage/RegionFile;intermediary method_12440Lnet/minecraft/class_2867;method_12440(Lnet/minecraft/class_1923;)Lnet/minecraft/class_2861;official bLdvo;b(Ldbh;)Ldvn;
-
getTagAt
- Throws:
IOException- Mappings:
Namespace Name Mixin selector named getTagAtLnet/minecraft/world/storage/RegionBasedStorage;getTagAt(Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/nbt/NbtCompound;intermediary method_17911Lnet/minecraft/class_2867;method_17911(Lnet/minecraft/class_1923;)Lnet/minecraft/class_2487;official aLdvo;a(Ldbh;)Lus;
-
scanChunk
- Throws:
IOException- Mappings:
Namespace Name Mixin selector named scanChunkLnet/minecraft/world/storage/RegionBasedStorage;scanChunk(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/nbt/scanner/NbtScanner;)Vintermediary method_39802Lnet/minecraft/class_2867;method_39802(Lnet/minecraft/class_1923;Lnet/minecraft/class_6836;)Vofficial aLdvo;a(Ldbh;Lvm;)V
-
write
- Throws:
IOException- Mappings:
Namespace Name Mixin selector named writeLnet/minecraft/world/storage/RegionBasedStorage;write(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/nbt/NbtCompound;)Vintermediary method_23726Lnet/minecraft/class_2867;method_23726(Lnet/minecraft/class_1923;Lnet/minecraft/class_2487;)Vofficial aLdvo;a(Ldbh;Lus;)V
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
sync
- Throws:
IOException- Mappings:
Namespace Name Mixin selector named syncLnet/minecraft/world/storage/RegionBasedStorage;sync()Vintermediary method_26982Lnet/minecraft/class_2867;method_26982()Vofficial aLdvo;a()V
-