类 VersionedChunkStorage

  • 所有已实现的接口:
    AutoCloseable
    直接已知子类:
    ThreadedAnvilChunkStorage

    public class VersionedChunkStorage
    extends Object
    implements AutoCloseable
    Mappings:
    Namespace Name
    official cmi
    intermediary net/minecraft/class_3977
    named net/minecraft/world/storage/VersionedChunkStorage
    • 字段详细资料

      • worker

        private final StorageIoWorker worker
        Mappings:
        Namespace Name Mixin selector
        official a Lcmi;a:Lcmk;
        intermediary field_21494 Lnet/minecraft/class_3977;field_21494:Lnet/minecraft/class_4698;
        named worker Lnet/minecraft/world/storage/VersionedChunkStorage;worker:Lnet/minecraft/world/storage/StorageIoWorker;
      • dataFixer

        protected final com.mojang.datafixers.DataFixer dataFixer
        Mappings:
        Namespace Name Mixin selector
        official d Lcmi;d:Lcom/mojang/datafixers/DataFixer;
        intermediary field_17655 Lnet/minecraft/class_3977;field_17655:Lcom/mojang/datafixers/DataFixer;
        named dataFixer Lnet/minecraft/world/storage/VersionedChunkStorage;dataFixer:Lcom/mojang/datafixers/DataFixer;
      • featureUpdater

        @Nullable
        private @Nullable FeatureUpdater featureUpdater
        Mappings:
        Namespace Name Mixin selector
        official b Lcmi;b:Lczx;
        intermediary field_17654 Lnet/minecraft/class_3977;field_17654:Lnet/minecraft/class_3360;
        named featureUpdater Lnet/minecraft/world/storage/VersionedChunkStorage;featureUpdater:Lnet/minecraft/world/FeatureUpdater;
    • 构造器详细资料

      • VersionedChunkStorage

        public VersionedChunkStorage​(File directory,
                                     com.mojang.datafixers.DataFixer dataFixer,
                                     boolean dsync)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lcmi;<init>(Ljava/io/File;Lcom/mojang/datafixers/DataFixer;Z)V
        intermediary <init> Lnet/minecraft/class_3977;<init>(Ljava/io/File;Lcom/mojang/datafixers/DataFixer;Z)V
        named <init> Lnet/minecraft/world/storage/VersionedChunkStorage;<init>(Ljava/io/File;Lcom/mojang/datafixers/DataFixer;Z)V
    • 方法详细资料

      • updateChunkNbt

        public CompoundTag updateChunkNbt​(RegistryKey<World> worldKey,
                                          Supplier<PersistentStateManager> persistentStateManagerFactory,
                                          CompoundTag nbt)
        Mappings:
        Namespace Name Mixin selector
        official a Lcmi;a(Lwo;Ljava/util/function/Supplier;Lmv;)Lmv;
        intermediary method_17907 Lnet/minecraft/class_3977;method_17907(Lnet/minecraft/class_5321;Ljava/util/function/Supplier;Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;
        named updateChunkNbt Lnet/minecraft/world/storage/VersionedChunkStorage;updateChunkNbt(Lnet/minecraft/util/registry/RegistryKey;Ljava/util/function/Supplier;Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
      • getDataVersion

        public static int getDataVersion​(CompoundTag nbt)
        Mappings:
        Namespace Name Mixin selector
        official a Lcmi;a(Lmv;)I
        intermediary method_17908 Lnet/minecraft/class_3977;method_17908(Lnet/minecraft/class_2487;)I
        named getDataVersion Lnet/minecraft/world/storage/VersionedChunkStorage;getDataVersion(Lnet/minecraft/nbt/CompoundTag;)I
      • getNbt

        @Nullable
        public @Nullable CompoundTag getNbt​(ChunkPos chunkPos)
                                     throws IOException
        抛出:
        IOException
        Mappings:
        Namespace Name Mixin selector
        official e Lcmi;e(Lbuw;)Lmv;
        intermediary method_23696 Lnet/minecraft/class_3977;method_23696(Lnet/minecraft/class_1923;)Lnet/minecraft/class_2487;
        named getNbt Lnet/minecraft/world/storage/VersionedChunkStorage;getNbt(Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/nbt/CompoundTag;
      • setNbt

        public void setNbt​(ChunkPos chunkPos,
                           CompoundTag nbt)
        Mappings:
        Namespace Name Mixin selector
        official a Lcmi;a(Lbuw;Lmv;)V
        intermediary method_17910 Lnet/minecraft/class_3977;method_17910(Lnet/minecraft/class_1923;Lnet/minecraft/class_2487;)V
        named setNbt Lnet/minecraft/world/storage/VersionedChunkStorage;setNbt(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/nbt/CompoundTag;)V
      • completeAll

        public void completeAll()
        Mappings:
        Namespace Name Mixin selector
        official i Lcmi;i()V
        intermediary method_23697 Lnet/minecraft/class_3977;method_23697()V
        named completeAll Lnet/minecraft/world/storage/VersionedChunkStorage;completeAll()V
      • close

        public void close()
                   throws IOException
        指定者:
        close 在接口中 AutoCloseable
        抛出:
        IOException
        Mappings:
        Namespace Name Mixin selector
        official close Lcmi;close()V
        intermediary close Lnet/minecraft/class_3977;close()V
        named close Lnet/minecraft/world/storage/VersionedChunkStorage;close()V