Class VersionedChunkStorage

java.lang.Object
net.minecraft.world.storage.VersionedChunkStorage
All Implemented Interfaces:
AutoCloseable
Direct Known Subclasses:
ThreadedAnvilChunkStorage

public class VersionedChunkStorage
extends Object
implements AutoCloseable
Mappings:
Namespace Name
official ckj
intermediary net/minecraft/class_3977
named net/minecraft/world/storage/VersionedChunkStorage
  • Field Details

    • worker

      private final StorageIoWorker worker
      Mappings:
      Namespace Name Mixin selector
      official a Lckj;a:Lckl;
      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 b Lckj;b: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 FeatureUpdater featureUpdater
      Mappings:
      Namespace Name Mixin selector
      official c Lckj;c:Lcwt;
      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;
  • Constructor Details

    • VersionedChunkStorage

      public VersionedChunkStorage​(File file, com.mojang.datafixers.DataFixer dataFixer, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lckj;<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
  • Method Details

    • updateChunkTag

      public CompoundTag updateChunkTag​(RegistryKey<World> registryKey, Supplier<PersistentStateManager> persistentStateManagerFactory, CompoundTag tag)
      Mappings:
      Namespace Name Mixin selector
      official a Lckj;a(Lwa;Ljava/util/function/Supplier;Lmq;)Lmq;
      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 updateChunkTag Lnet/minecraft/world/storage/VersionedChunkStorage;updateChunkTag(Lnet/minecraft/util/registry/RegistryKey;Ljava/util/function/Supplier;Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
    • getDataVersion

      public static int getDataVersion​(CompoundTag tag)
      Mappings:
      Namespace Name Mixin selector
      official a Lckj;a(Lmq;)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 CompoundTag getNbt​(ChunkPos chunkPos) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official e Lckj;e(Lbta;)Lmq;
      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;
    • setTagAt

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

      public void completeAll()
      Mappings:
      Namespace Name Mixin selector
      official i Lckj;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
      Specified by:
      close in interface AutoCloseable
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official close Lckj;close()V
      intermediary close Lnet/minecraft/class_3977;close()V
      named close Lnet/minecraft/world/storage/VersionedChunkStorage;close()V