Class ChunkSerializer
- java.lang.Object
-
- net.minecraft.world.chunk.storage.ChunkSerializer
-
public class ChunkSerializer extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static org.apache.logging.log4j.Logger
LOGGER
-
Constructor Summary
Constructors Constructor Description ChunkSerializer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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_, java.util.Map<Structure<?>,StructureStart<?>> p_222649_1_, java.util.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_)
private static java.util.Map<Structure<?>,it.unimi.dsi.fastutil.longs.LongSet>
unpackStructureReferences(ChunkPos p_227075_0_, CompoundNBT p_227075_1_)
private static java.util.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_)
-
-
-
Method Detail
-
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
public static CompoundNBT write(ServerWorld p_222645_0_, IChunk p_222645_1_)
-
getChunkTypeFromTag
public static ChunkStatus.Type getChunkTypeFromTag(@Nullable CompoundNBT p_222651_0_)
-
postLoadChunk
private static void postLoadChunk(CompoundNBT p_222650_0_, Chunk p_222650_1_)
-
packStructureData
private static CompoundNBT packStructureData(ChunkPos p_222649_0_, java.util.Map<Structure<?>,StructureStart<?>> p_222649_1_, java.util.Map<Structure<?>,it.unimi.dsi.fastutil.longs.LongSet> p_222649_2_)
-
unpackStructureStart
private static java.util.Map<Structure<?>,StructureStart<?>> unpackStructureStart(TemplateManager p_235967_0_, CompoundNBT p_235967_1_, long p_235967_2_)
-
unpackStructureReferences
private static java.util.Map<Structure<?>,it.unimi.dsi.fastutil.longs.LongSet> unpackStructureReferences(ChunkPos p_227075_0_, CompoundNBT p_227075_1_)
-
packOffsets
public static ListNBT packOffsets(it.unimi.dsi.fastutil.shorts.ShortList[] p_222647_0_)
-
-