Package net.minecraft.world
Class ChunkSerializer
java.lang.Object
net.minecraft.world.ChunkSerializer
public class ChunkSerializer extends Object
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ChunkSerializer()
-
Method Summary
Modifier and Type Method Description static ProtoChunk
deserialize(ServerWorld world, StructureManager structureManager, PointOfInterestStorage poiStorage, ChunkPos pos, CompoundTag tag)
static ChunkStatus.ChunkType
getChunkType(CompoundTag tag)
private static Map<StructureFeature<?>,LongSet>
readStructureReferences(ChunkPos pos, CompoundTag tag)
private static Map<StructureFeature<?>,StructureStart<?>>
readStructureStarts(StructureManager structureManager, CompoundTag tag, long worldSeed)
static CompoundTag
serialize(ServerWorld world, Chunk chunk)
static ListTag
toNbt(ShortList[] lists)
private static void
writeEntities(ServerWorld serverWorld, CompoundTag compoundTag, WorldChunk worldChunk)
private static CompoundTag
writeStructures(ChunkPos pos, Map<StructureFeature<?>,StructureStart<?>> structureStarts, Map<StructureFeature<?>,LongSet> structureReferences)
-
Field Details
-
LOGGER
-
-
Constructor Details
-
ChunkSerializer
public ChunkSerializer()
-
-
Method Details
-
deserialize
public static ProtoChunk deserialize(ServerWorld world, StructureManager structureManager, PointOfInterestStorage poiStorage, ChunkPos pos, CompoundTag tag) -
serialize
-
getChunkType
-
writeEntities
private static void writeEntities(ServerWorld serverWorld, CompoundTag compoundTag, WorldChunk worldChunk) -
writeStructures
private static CompoundTag writeStructures(ChunkPos pos, Map<StructureFeature<?>,StructureStart<?>> structureStarts, Map<StructureFeature<?>,LongSet> structureReferences) -
readStructureStarts
private static Map<StructureFeature<?>,StructureStart<?>> readStructureStarts(StructureManager structureManager, CompoundTag tag, long worldSeed) -
readStructureReferences
private static Map<StructureFeature<?>,LongSet> readStructureReferences(ChunkPos pos, CompoundTag tag) -
toNbt
-