类 RegionBasedStorage
- java.lang.Object
-
- net.minecraft.world.storage.RegionBasedStorage
-
- 所有已实现的接口:
AutoCloseable
public final class RegionBasedStorage extends Object implements AutoCloseable
- Mappings:
Namespace Name official cmointermediary net/minecraft/class_2867named net/minecraft/world/storage/RegionBasedStorage
-
-
字段概要
字段 修饰符和类型 字段 说明 private Long2ObjectLinkedOpenHashMap<RegionFile>cachedRegionFilesprivate Filedirectoryprivate booleandsyncstatic Stringfield_31425private static intfield_31426
-
构造器概要
构造器 构造器 说明 RegionBasedStorage(File directory, boolean dsync)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidclose()private RegionFilegetRegionFile(ChunkPos pos)@Nullable CompoundTaggetTagAt(ChunkPos pos)voidsync()protected voidwrite(ChunkPos pos, @Nullable CompoundTag nbt)
-
-
-
字段详细资料
-
field_31425
public static final String field_31425
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official aLcmo;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
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official bLcmo;b:Iintermediary field_31426Lnet/minecraft/class_2867;field_31426:Inamed field_31426Lnet/minecraft/world/storage/RegionBasedStorage;field_31426:I
-
cachedRegionFiles
private final Long2ObjectLinkedOpenHashMap<RegionFile> cachedRegionFiles
- Mappings:
Namespace Name Mixin selector official cLcmo;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
private final File directory
- Mappings:
Namespace Name Mixin selector official dLcmo;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 eLcmo;e:Zintermediary field_23748Lnet/minecraft/class_2867;field_23748:Znamed dsyncLnet/minecraft/world/storage/RegionBasedStorage;dsync:Z
-
-
构造器详细资料
-
RegionBasedStorage
RegionBasedStorage(File directory, boolean dsync)
- Mappings:
Namespace Name Mixin selector official <init>Lcmo;<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
-
-
方法详细资料
-
getRegionFile
private RegionFile getRegionFile(ChunkPos pos) throws IOException
- 抛出:
IOException- Mappings:
Namespace Name Mixin selector official bLcmo;b(Lbuw;)Lcmn;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
@Nullable public @Nullable CompoundTag getTagAt(ChunkPos pos) throws IOException
- 抛出:
IOException- Mappings:
Namespace Name Mixin selector official aLcmo;a(Lbuw;)Lmv;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
protected void write(ChunkPos pos, @Nullable @Nullable CompoundTag nbt) throws IOException
- 抛出:
IOException- Mappings:
Namespace Name Mixin selector official aLcmo;a(Lbuw;Lmv;)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
public void close() throws IOException- 指定者:
close在接口中AutoCloseable- 抛出:
IOException- Mappings:
Namespace Name Mixin selector official closeLcmo;close()Vintermediary closeLnet/minecraft/class_2867;close()Vnamed closeLnet/minecraft/world/storage/RegionBasedStorage;close()V
-
sync
public void sync() throws IOException- 抛出:
IOException- Mappings:
Namespace Name Mixin selector official aLcmo;a()Vintermediary method_26982Lnet/minecraft/class_2867;method_26982()Vnamed syncLnet/minecraft/world/storage/RegionBasedStorage;sync()V
-
-