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 dew
intermediary net/minecraft/class_3977
named net/minecraft/world/storage/VersionedChunkStorage
  • Field Details

    • FEATURE_UPDATING_VERSION

      public static final int FEATURE_UPDATING_VERSION
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Ldew;c:I
      intermediary field_36219 Lnet/minecraft/class_3977;field_36219:I
      named FEATURE_UPDATING_VERSION Lnet/minecraft/world/storage/VersionedChunkStorage;FEATURE_UPDATING_VERSION:I
    • worker

      private final StorageIoWorker worker
      Mappings:
      Namespace Name Mixin selector
      official a Ldew;a:Ldey;
      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 Ldew;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 volatile @Nullable FeatureUpdater featureUpdater
      Mappings:
      Namespace Name Mixin selector
      official b Ldew;b:Ldrs;
      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(Path directory, com.mojang.datafixers.DataFixer dataFixer, boolean dsync)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldew;<init>(Ljava/nio/file/Path;Lcom/mojang/datafixers/DataFixer;Z)V
      intermediary <init> Lnet/minecraft/class_3977;<init>(Ljava/nio/file/Path;Lcom/mojang/datafixers/DataFixer;Z)V
      named <init> Lnet/minecraft/world/storage/VersionedChunkStorage;<init>(Ljava/nio/file/Path;Lcom/mojang/datafixers/DataFixer;Z)V
  • Method Details

    • needsBlending

      public boolean needsBlending(ChunkPos chunkPos, int checkRadius)
      Mappings:
      Namespace Name Mixin selector
      official a Ldew;a(Lclr;I)Z
      intermediary method_42328 Lnet/minecraft/class_3977;method_42328(Lnet/minecraft/class_1923;I)Z
      named needsBlending Lnet/minecraft/world/storage/VersionedChunkStorage;needsBlending(Lnet/minecraft/util/math/ChunkPos;I)Z
    • updateChunkNbt

      public NbtCompound updateChunkNbt(RegistryKey<World> worldKey, Supplier<PersistentStateManager> persistentStateManagerFactory, NbtCompound nbt, Optional<RegistryKey<com.mojang.serialization.Codec<? extends ChunkGenerator>>> generatorCodecKey)
      Mappings:
      Namespace Name Mixin selector
      official a Ldew;a(Lacp;Ljava/util/function/Supplier;Lqr;Ljava/util/Optional;)Lqr;
      intermediary method_17907 Lnet/minecraft/class_3977;method_17907(Lnet/minecraft/class_5321;Ljava/util/function/Supplier;Lnet/minecraft/class_2487;Ljava/util/Optional;)Lnet/minecraft/class_2487;
      named updateChunkNbt Lnet/minecraft/world/storage/VersionedChunkStorage;updateChunkNbt(Lnet/minecraft/registry/RegistryKey;Ljava/util/function/Supplier;Lnet/minecraft/nbt/NbtCompound;Ljava/util/Optional;)Lnet/minecraft/nbt/NbtCompound;
    • getFeatureUpdater

      private FeatureUpdater getFeatureUpdater(RegistryKey<World> worldKey, Supplier<PersistentStateManager> stateManagerGetter)
      Mappings:
      Namespace Name Mixin selector
      official a Ldew;a(Lacp;Ljava/util/function/Supplier;)Ldrs;
      intermediary method_43411 Lnet/minecraft/class_3977;method_43411(Lnet/minecraft/class_5321;Ljava/util/function/Supplier;)Lnet/minecraft/class_3360;
      named getFeatureUpdater Lnet/minecraft/world/storage/VersionedChunkStorage;getFeatureUpdater(Lnet/minecraft/registry/RegistryKey;Ljava/util/function/Supplier;)Lnet/minecraft/world/FeatureUpdater;
    • saveContextToNbt

      public static void saveContextToNbt(NbtCompound nbt, RegistryKey<World> worldKey, Optional<RegistryKey<com.mojang.serialization.Codec<? extends ChunkGenerator>>> generatorCodecKey)
      Mappings:
      Namespace Name Mixin selector
      official a Ldew;a(Lqr;Lacp;Ljava/util/Optional;)V
      intermediary method_39799 Lnet/minecraft/class_3977;method_39799(Lnet/minecraft/class_2487;Lnet/minecraft/class_5321;Ljava/util/Optional;)V
      named saveContextToNbt Lnet/minecraft/world/storage/VersionedChunkStorage;saveContextToNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryKey;Ljava/util/Optional;)V
    • getDataVersion

      public static int getDataVersion(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Ldew;a(Lqr;)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/NbtCompound;)I
    • getNbt

      public CompletableFuture<Optional<NbtCompound>> getNbt(ChunkPos chunkPos)
      Mappings:
      Namespace Name Mixin selector
      official e Ldew;e(Lclr;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_23696 Lnet/minecraft/class_3977;method_23696(Lnet/minecraft/class_1923;)Ljava/util/concurrent/CompletableFuture;
      named getNbt Lnet/minecraft/world/storage/VersionedChunkStorage;getNbt(Lnet/minecraft/util/math/ChunkPos;)Ljava/util/concurrent/CompletableFuture;
    • setNbt

      public void setNbt(ChunkPos chunkPos, NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Ldew;a(Lclr;Lqr;)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/NbtCompound;)V
    • completeAll

      public void completeAll()
      Mappings:
      Namespace Name Mixin selector
      official o Ldew;o()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
    • getWorker

      public NbtScannable getWorker()
      Mappings:
      Namespace Name Mixin selector
      official p Ldew;p()Ldeu;
      intermediary method_39800 Lnet/minecraft/class_3977;method_39800()Lnet/minecraft/class_6830;
      named getWorker Lnet/minecraft/world/storage/VersionedChunkStorage;getWorker()Lnet/minecraft/world/storage/NbtScannable;