Package net.minecraft.world.storage
Class VersionedChunkStorage
java.lang.Object
net.minecraft.world.storage.VersionedChunkStorage
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
RecreatedChunkStorage
,ServerChunkLoadingManager
- Mappings:
Namespace Name named net/minecraft/world/storage/VersionedChunkStorage
intermediary net/minecraft/class_3977
official dwg
-
Field Summary
Modifier and TypeFieldDescriptionprotected final com.mojang.datafixers.DataFixer
static final int
private @Nullable FeatureUpdater
private final StorageIoWorker
-
Constructor Summary
ConstructorDescriptionVersionedChunkStorage
(StorageKey storageKey, Path directory, com.mojang.datafixers.DataFixer dataFixer, boolean dsync) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
static int
private FeatureUpdater
getFeatureUpdater
(RegistryKey<World> worldKey, Supplier<PersistentStateManager> stateManagerGetter) protected void
markFeatureUpdateResolved
(ChunkPos chunkPos) boolean
needsBlending
(ChunkPos chunkPos, int checkRadius) private static void
removeContext
(NbtCompound nbt) static void
saveContextToNbt
(NbtCompound nbt, RegistryKey<World> worldKey, Optional<RegistryKey<com.mojang.serialization.MapCodec<? extends ChunkGenerator>>> generatorCodecKey) setNbt
(ChunkPos chunkPos, NbtCompound nbt) updateChunkNbt
(RegistryKey<World> worldKey, Supplier<PersistentStateManager> persistentStateManagerFactory, NbtCompound nbt, Optional<RegistryKey<com.mojang.serialization.MapCodec<? extends ChunkGenerator>>> generatorCodecKey)
-
Field Details
-
FEATURE_UPDATING_VERSION
public static final int FEATURE_UPDATING_VERSION- See Also:
- Mappings:
Namespace Name Mixin selector named FEATURE_UPDATING_VERSION
Lnet/minecraft/world/storage/VersionedChunkStorage;FEATURE_UPDATING_VERSION:I
intermediary field_36219
Lnet/minecraft/class_3977;field_36219:I
official d
Ldwg;d:I
-
worker
- Mappings:
Namespace Name Mixin selector named worker
Lnet/minecraft/world/storage/VersionedChunkStorage;worker:Lnet/minecraft/world/storage/StorageIoWorker;
intermediary field_21494
Lnet/minecraft/class_3977;field_21494:Lnet/minecraft/class_4698;
official a
Ldwg;a:Ldwi;
-
dataFixer
protected final com.mojang.datafixers.DataFixer dataFixer- Mappings:
Namespace Name Mixin selector named dataFixer
Lnet/minecraft/world/storage/VersionedChunkStorage;dataFixer:Lcom/mojang/datafixers/DataFixer;
intermediary field_17655
Lnet/minecraft/class_3977;field_17655:Lcom/mojang/datafixers/DataFixer;
official e
Ldwg;e:Lcom/mojang/datafixers/DataFixer;
-
featureUpdater
- Mappings:
Namespace Name Mixin selector named featureUpdater
Lnet/minecraft/world/storage/VersionedChunkStorage;featureUpdater:Lnet/minecraft/world/FeatureUpdater;
intermediary field_17654
Lnet/minecraft/class_3977;field_17654:Lnet/minecraft/class_3360;
official b
Ldwg;b:Lejh;
-
-
Constructor Details
-
VersionedChunkStorage
public VersionedChunkStorage(StorageKey storageKey, Path directory, com.mojang.datafixers.DataFixer dataFixer, boolean dsync) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/world/storage/VersionedChunkStorage;<init>(Lnet/minecraft/world/storage/StorageKey;Ljava/nio/file/Path;Lcom/mojang/datafixers/DataFixer;Z)V
intermediary <init>
Lnet/minecraft/class_3977;<init>(Lnet/minecraft/class_9240;Ljava/nio/file/Path;Lcom/mojang/datafixers/DataFixer;Z)V
official <init>
Ldwg;<init>(Ldwp;Ljava/nio/file/Path;Lcom/mojang/datafixers/DataFixer;Z)V
-
-
Method Details
-
needsBlending
- Mappings:
Namespace Name Mixin selector named needsBlending
Lnet/minecraft/world/storage/VersionedChunkStorage;needsBlending(Lnet/minecraft/util/math/ChunkPos;I)Z
intermediary method_42328
Lnet/minecraft/class_3977;method_42328(Lnet/minecraft/class_1923;I)Z
official b
Ldwg;b(Ldcb;I)Z
-
updateChunkNbt
public NbtCompound updateChunkNbt(RegistryKey<World> worldKey, Supplier<PersistentStateManager> persistentStateManagerFactory, NbtCompound nbt, Optional<RegistryKey<com.mojang.serialization.MapCodec<? extends ChunkGenerator>>> generatorCodecKey) - Mappings:
Namespace Name Mixin selector named updateChunkNbt
Lnet/minecraft/world/storage/VersionedChunkStorage;updateChunkNbt(Lnet/minecraft/registry/RegistryKey;Ljava/util/function/Supplier;Lnet/minecraft/nbt/NbtCompound;Ljava/util/Optional;)Lnet/minecraft/nbt/NbtCompound;
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;
official a
Ldwg;a(Lakp;Ljava/util/function/Supplier;Lua;Ljava/util/Optional;)Lua;
-
getFeatureUpdater
private FeatureUpdater getFeatureUpdater(RegistryKey<World> worldKey, Supplier<PersistentStateManager> stateManagerGetter) - Mappings:
Namespace Name Mixin selector named getFeatureUpdater
Lnet/minecraft/world/storage/VersionedChunkStorage;getFeatureUpdater(Lnet/minecraft/registry/RegistryKey;Ljava/util/function/Supplier;)Lnet/minecraft/world/FeatureUpdater;
intermediary method_43411
Lnet/minecraft/class_3977;method_43411(Lnet/minecraft/class_5321;Ljava/util/function/Supplier;)Lnet/minecraft/class_3360;
official a
Ldwg;a(Lakp;Ljava/util/function/Supplier;)Lejh;
-
saveContextToNbt
public static void saveContextToNbt(NbtCompound nbt, RegistryKey<World> worldKey, Optional<RegistryKey<com.mojang.serialization.MapCodec<? extends ChunkGenerator>>> generatorCodecKey) - Mappings:
Namespace Name Mixin selector named saveContextToNbt
Lnet/minecraft/world/storage/VersionedChunkStorage;saveContextToNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryKey;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
official a
Ldwg;a(Lua;Lakp;Ljava/util/Optional;)V
-
removeContext
- Mappings:
Namespace Name Mixin selector named removeContext
Lnet/minecraft/world/storage/VersionedChunkStorage;removeContext(Lnet/minecraft/nbt/NbtCompound;)V
intermediary method_60626
Lnet/minecraft/class_3977;method_60626(Lnet/minecraft/class_2487;)V
official b
Ldwg;b(Lua;)V
-
getDataVersion
- Mappings:
Namespace Name Mixin selector named getDataVersion
Lnet/minecraft/world/storage/VersionedChunkStorage;getDataVersion(Lnet/minecraft/nbt/NbtCompound;)I
intermediary method_17908
Lnet/minecraft/class_3977;method_17908(Lnet/minecraft/class_2487;)I
official a
Ldwg;a(Lua;)I
-
getNbt
- Mappings:
Namespace Name Mixin selector named getNbt
Lnet/minecraft/world/storage/VersionedChunkStorage;getNbt(Lnet/minecraft/util/math/ChunkPos;)Ljava/util/concurrent/CompletableFuture;
intermediary method_23696
Lnet/minecraft/class_3977;method_23696(Lnet/minecraft/class_1923;)Ljava/util/concurrent/CompletableFuture;
official d
Ldwg;d(Ldcb;)Ljava/util/concurrent/CompletableFuture;
-
setNbt
- Mappings:
Namespace Name Mixin selector named setNbt
Lnet/minecraft/world/storage/VersionedChunkStorage;setNbt(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/nbt/NbtCompound;)Ljava/util/concurrent/CompletableFuture;
intermediary method_17910
Lnet/minecraft/class_3977;method_17910(Lnet/minecraft/class_1923;Lnet/minecraft/class_2487;)Ljava/util/concurrent/CompletableFuture;
official a
Ldwg;a(Ldcb;Lua;)Ljava/util/concurrent/CompletableFuture;
-
markFeatureUpdateResolved
- Mappings:
Namespace Name Mixin selector named markFeatureUpdateResolved
Lnet/minecraft/world/storage/VersionedChunkStorage;markFeatureUpdateResolved(Lnet/minecraft/util/math/ChunkPos;)V
intermediary method_56564
Lnet/minecraft/class_3977;method_56564(Lnet/minecraft/class_1923;)V
official e
Ldwg;e(Ldcb;)V
-
completeAll
public void completeAll()- Mappings:
Namespace Name Mixin selector named completeAll
Lnet/minecraft/world/storage/VersionedChunkStorage;completeAll()V
intermediary method_23697
Lnet/minecraft/class_3977;method_23697()V
official o
Ldwg;o()V
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-
getWorker
- Mappings:
Namespace Name Mixin selector named getWorker
Lnet/minecraft/world/storage/VersionedChunkStorage;getWorker()Lnet/minecraft/world/storage/NbtScannable;
intermediary method_39800
Lnet/minecraft/class_3977;method_39800()Lnet/minecraft/class_6830;
official p
Ldwg;p()Ldwe;
-