Package net.minecraft.world.storage
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 official ckpintermediary net/minecraft/class_2867named net/minecraft/world/storage/RegionBasedStorage
-
Field Summary
Fields Modifier and Type Field Description private Long2ObjectLinkedOpenHashMap<RegionFile>cachedRegionFilesprivate Filedirectoryprivate booleandsync -
Constructor Summary
Constructors Constructor Description RegionBasedStorage(File directory, boolean dsync) -
Method Summary
Modifier and Type Method Description voidclose()private RegionFilegetRegionFile(ChunkPos pos)CompoundTaggetTagAt(ChunkPos pos)voidmethod_26982()protected voidwrite(ChunkPos pos, CompoundTag tag)
-
Field Details
-
cachedRegionFiles
- Mappings:
Namespace Name Mixin selector official aLckp;a: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 bLckp;b:Ljava/io/File;intermediary field_18690Lnet/minecraft/class_2867;field_18690:Ljava/io/File;named directoryLnet/minecraft/world/storage/RegionBasedStorage;directory:Ljava/io/File;
-
dsync
private final boolean dsync- Mappings:
Namespace Name Mixin selector official cLckp;c:Zintermediary field_23748Lnet/minecraft/class_2867;field_23748:Znamed dsyncLnet/minecraft/world/storage/RegionBasedStorage;dsync:Z
-
-
Constructor Details
-
RegionBasedStorage
RegionBasedStorage(File directory, boolean dsync)- Mappings:
Namespace Name Mixin selector official <init>Lckp;<init>(Ljava/io/File;Z)Vintermediary <init>Lnet/minecraft/class_2867;<init>(Ljava/io/File;Z)Vnamed <init>Lnet/minecraft/world/storage/RegionBasedStorage;<init>(Ljava/io/File;Z)V
-
-
Method Details
-
getRegionFile
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official bLckp;b(Lbta;)Lcko;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 aLckp;a(Lbta;)Lmq;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/CompoundTag;
-
write
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLckp;a(Lbta;Lmq;)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/CompoundTag;)V
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException- Mappings:
Namespace Name Mixin selector official closeLckp;close()Vintermediary closeLnet/minecraft/class_2867;close()Vnamed closeLnet/minecraft/world/storage/RegionBasedStorage;close()V
-
method_26982
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLckp;a()Vintermediary method_26982Lnet/minecraft/class_2867;method_26982()Vnamed method_26982Lnet/minecraft/world/storage/RegionBasedStorage;method_26982()V
-