Class ChunkSerializer
java.lang.Object
net.minecraft.world.chunk.storage.ChunkSerializer
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ChunkStatus.Type
getChunkTypeFromTag
(CompoundNBT p_222651_0_) static ListNBT
packOffsets
(it.unimi.dsi.fastutil.shorts.ShortList[] p_222647_0_) private static CompoundNBT
packStructureData
(ChunkPos p_222649_0_, Map<Structure<?>, StructureStart<?>> p_222649_1_, Map<Structure<?>, it.unimi.dsi.fastutil.longs.LongSet> p_222649_2_) private static void
postLoadChunk
(CompoundNBT p_222650_0_, Chunk p_222650_1_) static ChunkPrimer
read
(ServerWorld p_222656_0_, TemplateManager p_222656_1_, PointOfInterestManager p_222656_2_, ChunkPos p_222656_3_, CompoundNBT p_222656_4_) unpackStructureReferences
(ChunkPos p_227075_0_, CompoundNBT p_227075_1_) private static Map<Structure<?>,
StructureStart<?>> unpackStructureStart
(TemplateManager p_235967_0_, CompoundNBT p_235967_1_, long p_235967_2_) static CompoundNBT
write
(ServerWorld p_222645_0_, IChunk p_222645_1_)
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
-
Constructor Details
-
ChunkSerializer
public ChunkSerializer()
-
-
Method Details
-
read
public static ChunkPrimer read(ServerWorld p_222656_0_, TemplateManager p_222656_1_, PointOfInterestManager p_222656_2_, ChunkPos p_222656_3_, CompoundNBT p_222656_4_) -
write
-
getChunkTypeFromTag
-
postLoadChunk
-
packStructureData
private static CompoundNBT packStructureData(ChunkPos p_222649_0_, Map<Structure<?>, StructureStart<?>> p_222649_1_, Map<Structure<?>, it.unimi.dsi.fastutil.longs.LongSet> p_222649_2_) -
unpackStructureStart
private static Map<Structure<?>,StructureStart<?>> unpackStructureStart(TemplateManager p_235967_0_, CompoundNBT p_235967_1_, long p_235967_2_) -
unpackStructureReferences
private static Map<Structure<?>,it.unimi.dsi.fastutil.longs.LongSet> unpackStructureReferences(ChunkPos p_227075_0_, CompoundNBT p_227075_1_) -
packOffsets
-