Class ChunkStorage
java.lang.Object
net.minecraft.world.level.chunk.storage.ChunkStorage
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
ChunkMap
-
Field Summary
Modifier and TypeFieldDescriptionprotected com.mojang.datafixers.DataFixer
private LegacyStructureDataHandler
private IOWorker
-
Constructor Summary
ConstructorDescriptionChunkStorage(File p_63499_, com.mojang.datafixers.DataFixer p_63500_, boolean p_63501_)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
static int
getVersion(CompoundTag p_63506_)
upgradeChunkTag(ResourceKey<Level> p_63508_, Supplier<DimensionDataStorage> p_63509_, CompoundTag p_63510_)
void
write(ChunkPos p_63503_, CompoundTag p_63504_)
-
Field Details
-
worker
-
fixerUpper
protected final com.mojang.datafixers.DataFixer fixerUpper -
legacyStructureHandler
-
-
Constructor Details
-
ChunkStorage
-
-
Method Details
-
upgradeChunkTag
public CompoundTag upgradeChunkTag(ResourceKey<Level> p_63508_, Supplier<DimensionDataStorage> p_63509_, CompoundTag p_63510_) -
getVersion
-
read
- Throws:
IOException
-
write
-
flushWorker
public void flushWorker() -
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
IOException
-