Package net.minecraft.world.storage
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 ckjintermediary net/minecraft/class_3977named net/minecraft/world/storage/VersionedChunkStorage
-
Field Summary
Fields Modifier and Type Field Description protected com.mojang.datafixers.DataFixerdataFixerprivate FeatureUpdaterfeatureUpdaterprivate StorageIoWorkerworker -
Constructor Summary
Constructors Constructor Description VersionedChunkStorage(File file, com.mojang.datafixers.DataFixer dataFixer, boolean bool) -
Method Summary
Modifier and Type Method Description voidclose()voidcompleteAll()static intgetDataVersion(CompoundTag tag)CompoundTaggetNbt(ChunkPos chunkPos)voidsetTagAt(ChunkPos chunkPos, CompoundTag tag)CompoundTagupdateChunkTag(RegistryKey<World> registryKey, Supplier<PersistentStateManager> persistentStateManagerFactory, CompoundTag tag)
-
Field Details
-
worker
- Mappings:
Namespace Name Mixin selector official aLckj;a:Lckl;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 bLckj;b: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 cLckj;c:Lcwt;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
- Mappings:
Namespace Name Mixin selector official <init>Lckj;<init>(Ljava/io/File;Lcom/mojang/datafixers/DataFixer;Z)Vintermediary <init>Lnet/minecraft/class_3977;<init>(Ljava/io/File;Lcom/mojang/datafixers/DataFixer;Z)Vnamed <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 aLckj;a(Lwa;Ljava/util/function/Supplier;Lmq;)Lmq;intermediary method_17907Lnet/minecraft/class_3977;method_17907(Lnet/minecraft/class_5321;Ljava/util/function/Supplier;Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;named updateChunkTagLnet/minecraft/world/storage/VersionedChunkStorage;updateChunkTag(Lnet/minecraft/util/registry/RegistryKey;Ljava/util/function/Supplier;Lnet/minecraft/nbt/CompoundTag;)Lnet/minecraft/nbt/CompoundTag;
-
getDataVersion
- Mappings:
Namespace Name Mixin selector official aLckj;a(Lmq;)Iintermediary method_17908Lnet/minecraft/class_3977;method_17908(Lnet/minecraft/class_2487;)Inamed getDataVersionLnet/minecraft/world/storage/VersionedChunkStorage;getDataVersion(Lnet/minecraft/nbt/CompoundTag;)I
-
getNbt
- Throws:
IOException- Mappings:
Namespace Name Mixin selector official eLckj;e(Lbta;)Lmq;intermediary method_23696Lnet/minecraft/class_3977;method_23696(Lnet/minecraft/class_1923;)Lnet/minecraft/class_2487;named getNbtLnet/minecraft/world/storage/VersionedChunkStorage;getNbt(Lnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/nbt/CompoundTag;
-
setTagAt
- Mappings:
Namespace Name Mixin selector official aLckj;a(Lbta;Lmq;)Vintermediary method_17910Lnet/minecraft/class_3977;method_17910(Lnet/minecraft/class_1923;Lnet/minecraft/class_2487;)Vnamed setTagAtLnet/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 iLckj;i()Vintermediary method_23697Lnet/minecraft/class_3977;method_23697()Vnamed completeAllLnet/minecraft/world/storage/VersionedChunkStorage;completeAll()V
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException- Mappings:
Namespace Name Mixin selector official closeLckj;close()Vintermediary closeLnet/minecraft/class_3977;close()Vnamed closeLnet/minecraft/world/storage/VersionedChunkStorage;close()V
-