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.DataFixer
dataFixer
private FeatureUpdater
featureUpdater
private StorageIoWorker
worker
-
Constructor Summary
Constructors Constructor Description VersionedChunkStorage(File file, com.mojang.datafixers.DataFixer dataFixer, boolean bool)
-
Method Summary
Modifier and Type Method Description void
close()
void
completeAll()
static int
getDataVersion(CompoundTag tag)
CompoundTag
getNbt(ChunkPos chunkPos)
void
setTagAt(ChunkPos chunkPos, CompoundTag compoundTag)
CompoundTag
updateChunkTag(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:
close
in interfaceAutoCloseable
- Throws:
IOException
-