Package net.minecraft.world.storage
Class RegionBasedStorage
java.lang.Object
net.minecraft.world.storage.RegionBasedStorage
- All Implemented Interfaces:
AutoCloseable
- Mappings:
Namespace Name official cnpintermediary net/minecraft/class_2867named net/minecraft/world/storage/RegionBasedStorage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Long2ObjectLinkedOpenHashMap<RegionFile>private Fileprivate booleanstatic Stringprivate static int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private RegionFilegetRegionFile(ChunkPos pos)voidsync()protected voidwrite(ChunkPos pos, @Nullable NbtCompound nbt)
-
Field Details
-
field_31425
- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official aLcnp;a:Ljava/lang/String;intermediary field_31425Lnet/minecraft/class_2867;field_31425:Ljava/lang/String;named field_31425Lnet/minecraft/world/storage/RegionBasedStorage;field_31425:Ljava/lang/String;
-
field_31426
private static final int field_31426- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official bLcnp;b:Iintermediary field_31426Lnet/minecraft/class_2867;field_31426:Inamed field_31426Lnet/minecraft/world/storage/RegionBasedStorage;field_31426:I
-
cachedRegionFiles
- Mappings:
Namespace Name Mixin selector official cLcnp;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 dLcnp;d: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 eLcnp;e: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>Lcnp;<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 bLcnp;b(Lbvu;)Lcno;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 aLcnp;a(Lbvu;)Lna;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;
-
write
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official aLcnp;a(Lbvu;Lna;)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 aLcnp;a()Vintermediary method_26982Lnet/minecraft/class_2867;method_26982()Vnamed syncLnet/minecraft/world/storage/RegionBasedStorage;sync()V
-