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 cnj
intermediary net/minecraft/class_3977
named net/minecraft/world/storage/VersionedChunkStorage
-
Field Summary
Modifier and TypeFieldDescriptionprotected com.mojang.datafixers.DataFixer
private @Nullable FeatureUpdater
private StorageIoWorker
-
Constructor Summary
ConstructorDescriptionVersionedChunkStorage(File directory, com.mojang.datafixers.DataFixer dataFixer, boolean dsync)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
static int
getDataVersion(NbtCompound nbt)
void
setNbt(ChunkPos chunkPos, NbtCompound nbt)
updateChunkNbt(RegistryKey<World> worldKey, Supplier<PersistentStateManager> persistentStateManagerFactory, NbtCompound nbt)
-
Field Details
-
worker
- Mappings:
Namespace Name Mixin selector official a
Lcnj;a:Lcnl;
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
Lcnj;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
- Mappings:
Namespace Name Mixin selector official b
Lcnj;b:Ldaw;
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 directory, com.mojang.datafixers.DataFixer dataFixer, boolean dsync)- Mappings:
Namespace Name Mixin selector official <init>
Lcnj;<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
-
updateChunkNbt
public NbtCompound updateChunkNbt(RegistryKey<World> worldKey, Supplier<PersistentStateManager> persistentStateManagerFactory, NbtCompound nbt)- Mappings:
Namespace Name Mixin selector official a
Lcnj;a(Lwv;Ljava/util/function/Supplier;Lna;)Lna;
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 updateChunkNbt
Lnet/minecraft/world/storage/VersionedChunkStorage;updateChunkNbt(Lnet/minecraft/util/registry/RegistryKey;Ljava/util/function/Supplier;Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/nbt/NbtCompound;
-
getDataVersion
- Mappings:
Namespace Name Mixin selector official a
Lcnj;a(Lna;)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
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official e
Lcnj;e(Lbvu;)Lna;
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/NbtCompound;
-
setNbt
- Mappings:
Namespace Name Mixin selector official a
Lcnj;a(Lbvu;Lna;)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 i
Lcnj;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
-