Package net.minecraft.world.storage
Class VersionedChunkStorage
java.lang.Object
net.minecraft.world.storage.VersionedChunkStorage
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
ThreadedAnvilChunkStorage
- Mappings:
Namespace Name official cxointermediary net/minecraft/class_3977named net/minecraft/world/storage/VersionedChunkStorage
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.mojang.datafixers.DataFixerprivate @Nullable FeatureUpdaterstatic final intprivate final StorageIoWorker -
Constructor Summary
ConstructorsConstructorDescriptionVersionedChunkStorage(Path directory, com.mojang.datafixers.DataFixer dataFixer, boolean dsync) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidstatic intprivate FeatureUpdatermethod_43411(RegistryKey<World> registryKey, Supplier<PersistentStateManager> supplier) booleanneedsBlending(ChunkPos chunkPos, int checkRadius) static voidsaveContextToNbt(NbtCompound nbt, RegistryKey<World> worldKey, Optional<RegistryKey<com.mojang.serialization.Codec<? extends ChunkGenerator>>> generatorCodecKey) voidsetNbt(ChunkPos chunkPos, NbtCompound nbt) updateChunkNbt(RegistryKey<World> worldKey, Supplier<PersistentStateManager> persistentStateManagerFactory, NbtCompound nbt, Optional<RegistryKey<com.mojang.serialization.Codec<? extends ChunkGenerator>>> generatorCodecKey)
-
Field Details
-
field_36219
public static final int field_36219- See Also:
- Mappings:
Namespace Name Mixin selector official dLcxo;d:Iintermediary field_36219Lnet/minecraft/class_3977;field_36219:Inamed field_36219Lnet/minecraft/world/storage/VersionedChunkStorage;field_36219:I
-
worker
- Mappings:
Namespace Name Mixin selector official aLcxo;a:Lcxq;intermediary field_21494Lnet/minecraft/class_3977;field_21494:Lnet/minecraft/class_4698;named workerLnet/minecraft/world/storage/VersionedChunkStorage;worker:Lnet/minecraft/world/storage/StorageIoWorker;
-
dataFixer
protected final com.mojang.datafixers.DataFixer dataFixer- Mappings:
Namespace Name Mixin selector official eLcxo;e:Lcom/mojang/datafixers/DataFixer;intermediary field_17655Lnet/minecraft/class_3977;field_17655:Lcom/mojang/datafixers/DataFixer;named dataFixerLnet/minecraft/world/storage/VersionedChunkStorage;dataFixer:Lcom/mojang/datafixers/DataFixer;
-
featureUpdater
- Mappings:
Namespace Name Mixin selector official bLcxo;b:Ldkb;intermediary field_17654Lnet/minecraft/class_3977;field_17654:Lnet/minecraft/class_3360;named featureUpdaterLnet/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>Lcxo;<init>(Ljava/nio/file/Path;Lcom/mojang/datafixers/DataFixer;Z)Vintermediary <init>Lnet/minecraft/class_3977;<init>(Ljava/nio/file/Path;Lcom/mojang/datafixers/DataFixer;Z)Vnamed <init>Lnet/minecraft/world/storage/VersionedChunkStorage;<init>(Ljava/nio/file/Path;Lcom/mojang/datafixers/DataFixer;Z)V
-
-
Method Details
-
needsBlending
- Mappings:
Namespace Name Mixin selector official aLcxo;a(Lcfj;I)Zintermediary method_42328Lnet/minecraft/class_3977;method_42328(Lnet/minecraft/class_1923;I)Znamed needsBlendingLnet/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 aLcxo;a(Laai;Ljava/util/function/Supplier;Lpj;Ljava/util/Optional;)Lpj;intermediary method_17907Lnet/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 updateChunkNbtLnet/minecraft/world/storage/VersionedChunkStorage;updateChunkNbt(Lnet/minecraft/util/registry/RegistryKey;Ljava/util/function/Supplier;Lnet/minecraft/nbt/NbtCompound;Ljava/util/Optional;)Lnet/minecraft/nbt/NbtCompound;
-
method_43411
private FeatureUpdater method_43411(RegistryKey<World> registryKey, Supplier<PersistentStateManager> supplier) - Mappings:
Namespace Name Mixin selector official aLcxo;a(Laai;Ljava/util/function/Supplier;)Ldkb;intermediary method_43411Lnet/minecraft/class_3977;method_43411(Lnet/minecraft/class_5321;Ljava/util/function/Supplier;)Lnet/minecraft/class_3360;named method_43411Lnet/minecraft/world/storage/VersionedChunkStorage;method_43411(Lnet/minecraft/util/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 aLcxo;a(Lpj;Laai;Ljava/util/Optional;)Vintermediary method_39799Lnet/minecraft/class_3977;method_39799(Lnet/minecraft/class_2487;Lnet/minecraft/class_5321;Ljava/util/Optional;)Vnamed saveContextToNbtLnet/minecraft/world/storage/VersionedChunkStorage;saveContextToNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/util/registry/RegistryKey;Ljava/util/Optional;)V
-
getDataVersion
- Mappings:
Namespace Name Mixin selector official aLcxo;a(Lpj;)Iintermediary method_17908Lnet/minecraft/class_3977;method_17908(Lnet/minecraft/class_2487;)Inamed getDataVersionLnet/minecraft/world/storage/VersionedChunkStorage;getDataVersion(Lnet/minecraft/nbt/NbtCompound;)I
-
getNbt
- Mappings:
Namespace Name Mixin selector official fLcxo;f(Lcfj;)Ljava/util/concurrent/CompletableFuture;intermediary method_23696Lnet/minecraft/class_3977;method_23696(Lnet/minecraft/class_1923;)Ljava/util/concurrent/CompletableFuture;named getNbtLnet/minecraft/world/storage/VersionedChunkStorage;getNbt(Lnet/minecraft/util/math/ChunkPos;)Ljava/util/concurrent/CompletableFuture;
-
setNbt
- Mappings:
Namespace Name Mixin selector official aLcxo;a(Lcfj;Lpj;)Vintermediary method_17910Lnet/minecraft/class_3977;method_17910(Lnet/minecraft/class_1923;Lnet/minecraft/class_2487;)Vnamed setNbtLnet/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 nLcxo;n()Vintermediary method_23697Lnet/minecraft/class_3977;method_23697()Vnamed completeAllLnet/minecraft/world/storage/VersionedChunkStorage;completeAll()V
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
getWorker
- Mappings:
Namespace Name Mixin selector official oLcxo;o()Lcxm;intermediary method_39800Lnet/minecraft/class_3977;method_39800()Lnet/minecraft/class_6830;named getWorkerLnet/minecraft/world/storage/VersionedChunkStorage;getWorker()Lnet/minecraft/world/storage/NbtScannable;
-