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 cro
intermediary net/minecraft/class_3977
named net/minecraft/world/storage/VersionedChunkStorage
-
Field Summary
Modifier and TypeFieldDescriptionprotected final com.mojang.datafixers.DataFixer
private @Nullable FeatureUpdater
static final int
private final StorageIoWorker
-
Constructor Summary
ConstructorDescriptionVersionedChunkStorage
(Path directory, com.mojang.datafixers.DataFixer dataFixer, boolean dsync) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
static int
static void
saveContextToNbt
(NbtCompound nbt, RegistryKey<World> worldKey, Optional<RegistryKey<com.mojang.serialization.Codec<? extends ChunkGenerator>>> generatorCodecKey) void
setNbt
(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 d
Lcro;d:I
intermediary field_36219
Lnet/minecraft/class_3977;field_36219:I
named field_36219
Lnet/minecraft/world/storage/VersionedChunkStorage;field_36219:I
-
worker
- Mappings:
Namespace Name Mixin selector official a
Lcro;a:Lcrq;
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 e
Lcro;e: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
Lcro;b:Ldew;
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>
Lcro;<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
-
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
Lcro;a(Lys;Ljava/util/function/Supplier;Lok;Ljava/util/Optional;)Lok;
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/util/registry/RegistryKey;Ljava/util/function/Supplier;Lnet/minecraft/nbt/NbtCompound;Ljava/util/Optional;)Lnet/minecraft/nbt/NbtCompound;
-
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
Lcro;a(Lok;Lys;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/util/registry/RegistryKey;Ljava/util/Optional;)V
-
getDataVersion
- Mappings:
Namespace Name Mixin selector official a
Lcro;a(Lok;)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 f
Lcro;f(Lcac;)Lok;
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
Lcro;a(Lcac;Lok;)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 m
Lcro;m()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
-
getWorker
- Mappings:
Namespace Name Mixin selector official n
Lcro;n()Lcrm;
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;
-