Class ChunkSerializer
java.lang.Object
net.minecraft.world.level.chunk.storage.ChunkSerializer
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ChunkStatus.ChunkType
getChunkTypeFromTag(CompoundTag p_63486_)
static ListTag
packOffsets(it.unimi.dsi.fastutil.shorts.ShortList[] p_63491_)
private static CompoundTag
packStructureData(ServerLevel p_156514_, ChunkPos p_156515_, Map<StructureFeature<?>,StructureStart<?>> p_156516_, Map<StructureFeature<?>,it.unimi.dsi.fastutil.longs.LongSet> p_156517_)
private static void
postLoadChunk(ServerLevel p_156523_, CompoundTag p_156524_, LevelChunk p_156525_)
static ProtoChunk
read(ServerLevel p_63458_, StructureManager p_63459_, PoiManager p_63460_, ChunkPos p_63461_, CompoundTag p_63462_)
private static Map<StructureFeature<?>,it.unimi.dsi.fastutil.longs.LongSet>
unpackStructureReferences(ChunkPos p_63472_, CompoundTag p_63473_)
private static Map<StructureFeature<?>,StructureStart<?>>
unpackStructureStart(ServerLevel p_156519_, CompoundTag p_156520_, long p_156521_)
static CompoundTag
write(ServerLevel p_63455_, ChunkAccess p_63456_)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
TAG_UPGRADE_DATA
- See Also:
- Constant Field Values
-
-
Constructor Details
-
ChunkSerializer
public ChunkSerializer()
-
-
Method Details
-
read
public static ProtoChunk read(ServerLevel p_63458_, StructureManager p_63459_, PoiManager p_63460_, ChunkPos p_63461_, CompoundTag p_63462_) -
write
-
getChunkTypeFromTag
-
postLoadChunk
private static void postLoadChunk(ServerLevel p_156523_, CompoundTag p_156524_, LevelChunk p_156525_) -
packStructureData
private static CompoundTag packStructureData(ServerLevel p_156514_, ChunkPos p_156515_, Map<StructureFeature<?>,StructureStart<?>> p_156516_, Map<StructureFeature<?>,it.unimi.dsi.fastutil.longs.LongSet> p_156517_) -
unpackStructureStart
private static Map<StructureFeature<?>,StructureStart<?>> unpackStructureStart(ServerLevel p_156519_, CompoundTag p_156520_, long p_156521_) -
unpackStructureReferences
private static Map<StructureFeature<?>,it.unimi.dsi.fastutil.longs.LongSet> unpackStructureReferences(ChunkPos p_63472_, CompoundTag p_63473_) -
packOffsets
-