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 ckj
intermediary net/minecraft/class_3977
named net/minecraft/world/storage/VersionedChunkStorage
-
Field Summary
Fields Modifier and Type Field Description protected com.mojang.datafixers.DataFixer
dataFixer
private FeatureUpdater
featureUpdater
private StorageIoWorker
worker
-
Constructor Summary
Constructors Constructor Description VersionedChunkStorage(File file, com.mojang.datafixers.DataFixer dataFixer, boolean bool)
-
Method Summary
Modifier and Type Method Description void
close()
void
completeAll()
static int
getDataVersion(CompoundTag tag)
CompoundTag
getNbt(ChunkPos chunkPos)
void
setTagAt(ChunkPos chunkPos, CompoundTag tag)
CompoundTag
updateChunkTag(RegistryKey<World> registryKey, Supplier<PersistentStateManager> persistentStateManagerFactory, CompoundTag tag)
-
Field Details
-
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
- 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
- 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
- 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
- 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
- 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
- Specified by:
close
in interfaceAutoCloseable
- 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
-