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 ProtoChunkdeserialize(ServerWorld world, StructureManager structureManager, PointOfInterestStorage poiStorage, ChunkPos pos, CompoundTag tag)static ChunkStatus.ChunkTypegetChunkType(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 CompoundTagserialize(ServerWorld world, Chunk chunk)static ListTagtoNbt(ShortList[] lists)private static voidwriteEntities(ServerWorld serverWorld, CompoundTag compoundTag, WorldChunk worldChunk)private static CompoundTagwriteStructures(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
-