Class ChunkSerializer
java.lang.Object
net.minecraft.world.level.chunk.storage.ChunkSerializer
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
private static final com.mojang.serialization.Codec
<PalettedContainer<BlockState>> private static final String
private static final String
static final String
static final String
private static final org.slf4j.Logger
static final String
static final String
private static final String
static final String
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ChunkType
getChunkTypeFromTag
(CompoundTag p_63486_) private static ListTag
getListOfCompoundsOrNull
(CompoundTag p_196898_, String p_196899_) private static void
private static com.mojang.serialization.Codec
<PalettedContainerRO<Holder<Biome>>> makeBiomeCodec
(Registry<Biome> p_188261_) static ListTag
packOffsets
(it.unimi.dsi.fastutil.shorts.ShortList[] p_63491_) private static CompoundTag
packStructureData
(StructurePieceSerializationContext p_188250_, ChunkPos p_188251_, Map<Structure, StructureStart> p_188252_, Map<Structure, it.unimi.dsi.fastutil.longs.LongSet> p_188253_) private static LevelChunk.PostLoadProcessor
postLoadChunk
(ServerLevel p_196891_, CompoundTag p_196892_) static ProtoChunk
read
(ServerLevel p_188231_, PoiManager p_188232_, ChunkPos p_188233_, CompoundTag p_188234_) private static void
saveTicks
(ServerLevel p_188236_, CompoundTag p_188237_, ChunkAccess.TicksToSave p_188238_) unpackStructureReferences
(RegistryAccess p_208155_, ChunkPos p_208156_, CompoundTag p_208157_) private static Map
<Structure, StructureStart> unpackStructureStart
(StructurePieceSerializationContext p_188255_, CompoundTag p_188256_, long p_188257_) static CompoundTag
write
(ServerLevel p_63455_, ChunkAccess p_63456_)
-
Field Details
-
BLOCK_STATE_CODEC
private static final com.mojang.serialization.Codec<PalettedContainer<BlockState>> BLOCK_STATE_CODEC -
LOGGER
private static final org.slf4j.Logger LOGGER -
TAG_UPGRADE_DATA
- See Also:
-
BLOCK_TICKS_TAG
- See Also:
-
FLUID_TICKS_TAG
- See Also:
-
X_POS_TAG
- See Also:
-
Z_POS_TAG
- See Also:
-
HEIGHTMAPS_TAG
- See Also:
-
IS_LIGHT_ON_TAG
- See Also:
-
SECTIONS_TAG
- See Also:
-
BLOCK_LIGHT_TAG
- See Also:
-
SKY_LIGHT_TAG
- See Also:
-
-
Constructor Details
-
ChunkSerializer
public ChunkSerializer()
-
-
Method Details
-
read
public static ProtoChunk read(ServerLevel p_188231_, PoiManager p_188232_, ChunkPos p_188233_, CompoundTag p_188234_) -
logErrors
-
makeBiomeCodec
private static com.mojang.serialization.Codec<PalettedContainerRO<Holder<Biome>>> makeBiomeCodec(Registry<Biome> p_188261_) -
write
-
saveTicks
private static void saveTicks(ServerLevel p_188236_, CompoundTag p_188237_, ChunkAccess.TicksToSave p_188238_) -
getChunkTypeFromTag
-
postLoadChunk
@Nullable private static LevelChunk.PostLoadProcessor postLoadChunk(ServerLevel p_196891_, CompoundTag p_196892_) -
getListOfCompoundsOrNull
-
packStructureData
private static CompoundTag packStructureData(StructurePieceSerializationContext p_188250_, ChunkPos p_188251_, Map<Structure, StructureStart> p_188252_, Map<Structure, it.unimi.dsi.fastutil.longs.LongSet> p_188253_) -
unpackStructureStart
private static Map<Structure,StructureStart> unpackStructureStart(StructurePieceSerializationContext p_188255_, CompoundTag p_188256_, long p_188257_) -
unpackStructureReferences
private static Map<Structure,it.unimi.dsi.fastutil.longs.LongSet> unpackStructureReferences(RegistryAccess p_208155_, ChunkPos p_208156_, CompoundTag p_208157_) -
packOffsets
-