public class VersionedChunkStorage extends Object implements AutoCloseable
Modifier and Type | Field and Description |
---|---|
protected com.mojang.datafixers.DataFixer |
dataFixer |
private FeatureUpdater |
featureUpdater |
private StorageIoWorker |
worker |
Constructor and Description |
---|
VersionedChunkStorage(File file,
com.mojang.datafixers.DataFixer dataFixer,
boolean bool) |
Modifier and Type | Method and 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) |
private final StorageIoWorker worker
protected final com.mojang.datafixers.DataFixer dataFixer
@Nullable private FeatureUpdater featureUpdater
public VersionedChunkStorage(File file, com.mojang.datafixers.DataFixer dataFixer, boolean bool)
public CompoundTag updateChunkTag(RegistryKey<World> registryKey, Supplier<PersistentStateManager> persistentStateManagerFactory, CompoundTag tag)
public static int getDataVersion(CompoundTag tag)
@Nullable public CompoundTag getNbt(ChunkPos chunkPos) throws IOException
IOException
public void setTagAt(ChunkPos chunkPos, CompoundTag compoundTag)
public void completeAll()
public void close() throws IOException
close
in interface AutoCloseable
IOException