Package net.minecraft.world.storage
Class RegionBasedStorage
java.lang.Object
net.minecraft.world.storage.RegionBasedStorage
- All Implemented Interfaces:
AutoCloseable
- Mappings:
Namespace Name official dfbintermediary net/minecraft/class_2867named net/minecraft/world/storage/RegionBasedStorage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Long2ObjectLinkedOpenHashMap<RegionFile>private final Pathprivate final booleanprivate static final intstatic final String -
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 official aLdfb;a:Ljava/lang/String;intermediary field_31425Lnet/minecraft/class_2867;field_31425:Ljava/lang/String;named MCA_EXTENSIONLnet/minecraft/world/storage/RegionBasedStorage;MCA_EXTENSION:Ljava/lang/String;
-
MAX_CACHE_SIZE
private static final int MAX_CACHE_SIZE- See Also:
- Mappings:
Namespace Name Mixin selector official bLdfb;b:Iintermediary field_31426Lnet/minecraft/class_2867;field_31426:Inamed MAX_CACHE_SIZELnet/minecraft/world/storage/RegionBasedStorage;MAX_CACHE_SIZE:I
-
cachedRegionFiles
- Mappings:
Namespace Name Mixin selector official cLdfb;c:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;intermediary field_17657Lnet/minecraft/class_2867;field_17657:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;named cachedRegionFilesLnet/minecraft/world/storage/RegionBasedStorage;cachedRegionFiles:Lit/unimi/dsi/fastutil/longs/Long2ObjectLinkedOpenHashMap;
-
directory
- Mappings:
Namespace Name Mixin selector official dLdfb;d:Ljava/nio/file/Path;intermediary field_18690Lnet/minecraft/class_2867;field_18690:Ljava/nio/file/Path;named directoryLnet/minecraft/world/storage/RegionBasedStorage;directory:Ljava/nio/file/Path;
-
dsync
private final boolean dsync- Mappings:
Namespace Name Mixin selector official eLdfb;e:Zintermediary field_23748Lnet/minecraft/class_2867;field_23748:Znamed dsyncLnet/minecraft/world/storage/RegionBasedStorage;dsync:Z
-
-
Constructor Details
-
RegionBasedStorage
RegionBasedStorage(Path directory, boolean dsync) - Mappings:
Namespace Name Mixin selector official <init>Ldfb;<init>(Ljava/nio/file/Path;Z)Vintermediary <init>Lnet/minecraft/class_2867;<init>(Ljava/nio/file/Path;Z)Vnamed <init>Lnet/minecraft/world/storage/RegionBasedStorage;<init>(Ljava/nio/file/Path;Z)V
-
-
Method Details
-
getRegionFile
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official bLdfb;b(Lclr;)Ldfa;intermediary method_12440Lnet/minecraft/class_2867;method_12440(Lnet/minecraft/class_1923;)Lnet/minecraft/class_2861;named getRegionFileLnet/minecraft/world/storage/RegionBasedStorage;getRegionFile(Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/world/storage/RegionFile;
-
getTagAt
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLdfb;a(Lclr;)Lqr;intermediary method_17911Lnet/minecraft/class_2867;method_17911(Lnet/minecraft/class_1923;)Lnet/minecraft/class_2487;named getTagAtLnet/minecraft/world/storage/RegionBasedStorage;getTagAt(Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/nbt/NbtCompound;
-
scanChunk
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLdfb;a(Lclr;Lrh;)Vintermediary method_39802Lnet/minecraft/class_2867;method_39802(Lnet/minecraft/class_1923;Lnet/minecraft/class_6836;)Vnamed scanChunkLnet/minecraft/world/storage/RegionBasedStorage;scanChunk(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/nbt/scanner/NbtScanner;)V
-
write
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLdfb;a(Lclr;Lqr;)Vintermediary method_23726Lnet/minecraft/class_2867;method_23726(Lnet/minecraft/class_1923;Lnet/minecraft/class_2487;)Vnamed writeLnet/minecraft/world/storage/RegionBasedStorage;write(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/nbt/NbtCompound;)V
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
sync
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLdfb;a()Vintermediary method_26982Lnet/minecraft/class_2867;method_26982()Vnamed syncLnet/minecraft/world/storage/RegionBasedStorage;sync()V
-