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/VersionedChunkStorageintermediary net/minecraft/class_3977official dwj
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.mojang.datafixers.DataFixerstatic final intprivate @Nullable FeatureUpdaterprivate final StorageIoWorker -
Constructor Summary
ConstructorsConstructorDescriptionVersionedChunkStorage(StorageKey storageKey, Path directory, com.mojang.datafixers.DataFixer dataFixer, boolean dsync) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidstatic intprivate FeatureUpdatergetFeatureUpdater(RegistryKey<World> worldKey, Supplier<PersistentStateManager> stateManagerGetter) protected StorageKeyprotected voidmarkFeatureUpdateResolved(ChunkPos chunkPos) booleanneedsBlending(ChunkPos chunkPos, int checkRadius) private static voidremoveContext(NbtCompound nbt) static voidsaveContextToNbt(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_VERSIONLnet/minecraft/world/storage/VersionedChunkStorage;FEATURE_UPDATING_VERSION:Iintermediary field_36219Lnet/minecraft/class_3977;field_36219:Iofficial dLdwj;d:I
-
worker
- Mappings:
Namespace Name Mixin selector named workerLnet/minecraft/world/storage/VersionedChunkStorage;worker:Lnet/minecraft/world/storage/StorageIoWorker;intermediary field_21494Lnet/minecraft/class_3977;field_21494:Lnet/minecraft/class_4698;official aLdwj;a:Ldwl;
-
dataFixer
protected final com.mojang.datafixers.DataFixer dataFixer- Mappings:
Namespace Name Mixin selector named dataFixerLnet/minecraft/world/storage/VersionedChunkStorage;dataFixer:Lcom/mojang/datafixers/DataFixer;intermediary field_17655Lnet/minecraft/class_3977;field_17655:Lcom/mojang/datafixers/DataFixer;official eLdwj;e:Lcom/mojang/datafixers/DataFixer;
-
featureUpdater
- Mappings:
Namespace Name Mixin selector named featureUpdaterLnet/minecraft/world/storage/VersionedChunkStorage;featureUpdater:Lnet/minecraft/world/FeatureUpdater;intermediary field_17654Lnet/minecraft/class_3977;field_17654:Lnet/minecraft/class_3360;official bLdwj;b:Lejm;
-
-
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)Vintermediary <init>Lnet/minecraft/class_3977;<init>(Lnet/minecraft/class_9240;Ljava/nio/file/Path;Lcom/mojang/datafixers/DataFixer;Z)Vofficial <init>Ldwj;<init>(Ldws;Ljava/nio/file/Path;Lcom/mojang/datafixers/DataFixer;Z)V
-
-
Method Details
-
needsBlending
- Mappings:
Namespace Name Mixin selector named needsBlendingLnet/minecraft/world/storage/VersionedChunkStorage;needsBlending(Lnet/minecraft/util/math/ChunkPos;I)Zintermediary method_42328Lnet/minecraft/class_3977;method_42328(Lnet/minecraft/class_1923;I)Zofficial bLdwj;b(Ldcd;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 updateChunkNbtLnet/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_17907Lnet/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 aLdwj;a(Lakq;Ljava/util/function/Supplier;Lub;Ljava/util/Optional;)Lub;
-
getFeatureUpdater
private FeatureUpdater getFeatureUpdater(RegistryKey<World> worldKey, Supplier<PersistentStateManager> stateManagerGetter) - Mappings:
Namespace Name Mixin selector named getFeatureUpdaterLnet/minecraft/world/storage/VersionedChunkStorage;getFeatureUpdater(Lnet/minecraft/registry/RegistryKey;Ljava/util/function/Supplier;)Lnet/minecraft/world/FeatureUpdater;intermediary method_43411Lnet/minecraft/class_3977;method_43411(Lnet/minecraft/class_5321;Ljava/util/function/Supplier;)Lnet/minecraft/class_3360;official aLdwj;a(Lakq;Ljava/util/function/Supplier;)Lejm;
-
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 saveContextToNbtLnet/minecraft/world/storage/VersionedChunkStorage;saveContextToNbt(Lnet/minecraft/nbt/NbtCompound;Lnet/minecraft/registry/RegistryKey;Ljava/util/Optional;)Vintermediary method_39799Lnet/minecraft/class_3977;method_39799(Lnet/minecraft/class_2487;Lnet/minecraft/class_5321;Ljava/util/Optional;)Vofficial aLdwj;a(Lub;Lakq;Ljava/util/Optional;)V
-
removeContext
- Mappings:
Namespace Name Mixin selector named removeContextLnet/minecraft/world/storage/VersionedChunkStorage;removeContext(Lnet/minecraft/nbt/NbtCompound;)Vintermediary method_60626Lnet/minecraft/class_3977;method_60626(Lnet/minecraft/class_2487;)Vofficial bLdwj;b(Lub;)V
-
getDataVersion
- Mappings:
Namespace Name Mixin selector named getDataVersionLnet/minecraft/world/storage/VersionedChunkStorage;getDataVersion(Lnet/minecraft/nbt/NbtCompound;)Iintermediary method_17908Lnet/minecraft/class_3977;method_17908(Lnet/minecraft/class_2487;)Iofficial aLdwj;a(Lub;)I
-
getNbt
- Mappings:
Namespace Name Mixin selector named getNbtLnet/minecraft/world/storage/VersionedChunkStorage;getNbt(Lnet/minecraft/util/math/ChunkPos;)Ljava/util/concurrent/CompletableFuture;intermediary method_23696Lnet/minecraft/class_3977;method_23696(Lnet/minecraft/class_1923;)Ljava/util/concurrent/CompletableFuture;official dLdwj;d(Ldcd;)Ljava/util/concurrent/CompletableFuture;
-
setNbt
- Mappings:
Namespace Name Mixin selector named setNbtLnet/minecraft/world/storage/VersionedChunkStorage;setNbt(Lnet/minecraft/util/math/ChunkPos;Lnet/minecraft/nbt/NbtCompound;)Ljava/util/concurrent/CompletableFuture;intermediary method_17910Lnet/minecraft/class_3977;method_17910(Lnet/minecraft/class_1923;Lnet/minecraft/class_2487;)Ljava/util/concurrent/CompletableFuture;official aLdwj;a(Ldcd;Lub;)Ljava/util/concurrent/CompletableFuture;
-
markFeatureUpdateResolved
- Mappings:
Namespace Name Mixin selector named markFeatureUpdateResolvedLnet/minecraft/world/storage/VersionedChunkStorage;markFeatureUpdateResolved(Lnet/minecraft/util/math/ChunkPos;)Vintermediary method_56564Lnet/minecraft/class_3977;method_56564(Lnet/minecraft/class_1923;)Vofficial eLdwj;e(Ldcd;)V
-
completeAll
public void completeAll()- Mappings:
Namespace Name Mixin selector named completeAllLnet/minecraft/world/storage/VersionedChunkStorage;completeAll()Vintermediary method_23697Lnet/minecraft/class_3977;method_23697()Vofficial oLdwj;o()V
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-
getWorker
- Mappings:
Namespace Name Mixin selector named getWorkerLnet/minecraft/world/storage/VersionedChunkStorage;getWorker()Lnet/minecraft/world/storage/NbtScannable;intermediary method_39800Lnet/minecraft/class_3977;method_39800()Lnet/minecraft/class_6830;official pLdwj;p()Ldwh;
-
getStorageKey
- Mappings:
Namespace Name Mixin selector named getStorageKeyLnet/minecraft/world/storage/VersionedChunkStorage;getStorageKey()Lnet/minecraft/world/storage/StorageKey;intermediary method_60999Lnet/minecraft/class_3977;method_60999()Lnet/minecraft/class_9240;official qLdwj;q()Ldws;
-