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
-
Field Summary
Fields Modifier and Type Field Description protected com.mojang.datafixers.DataFixerdataFixerprivate FeatureUpdaterfeatureUpdaterprivate StorageIoWorkerworker -
Constructor Summary
Constructors Constructor Description VersionedChunkStorage(File file, com.mojang.datafixers.DataFixer dataFixer, boolean bool) -
Method Summary
Modifier and Type Method Description voidclose()voidcompleteAll()static intgetDataVersion(NbtCompound nbt)NbtCompoundgetNbt(ChunkPos chunkPos)voidsetNbt(ChunkPos chunkPos, NbtCompound nbt)NbtCompoundupdateChunkNbt(RegistryKey<World> worldKey, Supplier<PersistentStateManager> persistentStateManagerFactory, NbtCompound nbt)
-
Field Details
-
worker
-
dataFixer
protected final com.mojang.datafixers.DataFixer dataFixer -
featureUpdater
-
-
Constructor Details
-
VersionedChunkStorage
-
-
Method Details
-
updateChunkNbt
public NbtCompound updateChunkNbt(RegistryKey<World> worldKey, Supplier<PersistentStateManager> persistentStateManagerFactory, NbtCompound nbt) -
getDataVersion
-
getNbt
- Throws:
IOException
-
setNbt
-
completeAll
public void completeAll() -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-