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(CompoundTag tag)CompoundTaggetNbt(ChunkPos chunkPos)voidsetTagAt(ChunkPos chunkPos, CompoundTag compoundTag)CompoundTagupdateChunkTag(RegistryKey<World> registryKey, Supplier<PersistentStateManager> persistentStateManagerFactory, CompoundTag tag)
-
Field Details
-
worker
-
dataFixer
protected final com.mojang.datafixers.DataFixer dataFixer -
featureUpdater
-
-
Constructor Details
-
VersionedChunkStorage
-
-
Method Details
-
updateChunkTag
public CompoundTag updateChunkTag(RegistryKey<World> registryKey, Supplier<PersistentStateManager> persistentStateManagerFactory, CompoundTag tag) -
getDataVersion
-
getNbt
- Throws:
IOException
-
setTagAt
-
completeAll
public void completeAll() -
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-