protocol: statr adding ChunkData_AndLight, combining ChunkData + UpdateLight

This commit is contained in:
ice_iix 2021-12-24 16:23:36 -08:00
parent 5c84ecd8c5
commit 17c96bf6d0
2 changed files with 17 additions and 1 deletions

View File

@ -1137,6 +1137,22 @@ state_packets!(
}
/// ChunkData sends or updates a single chunk on the client. If New is set
/// then biome data should be sent too.
packet ChunkData_AndLight {
field chunk_x: i32 =,
field chunk_z: i32 =,
field heightmaps: Option<nbt::NamedTag> =,
field data: LenPrefixedBytes<VarInt> =,
field block_entities: LenPrefixed<VarInt, Option<nbt::NamedTag>> =, // TODO: packed xz,y,type
field trust_edges: bool =,
// TODO: BitSets instead of long arrays
field sky_light_mask: LenPrefixed<VarInt, i64> =,
field block_light_mask: LenPrefixed<VarInt, i64> =,
field empty_sky_light_mask: LenPrefixed<VarInt, i64> =,
field empty_block_light_mask: LenPrefixed<VarInt, i64> =,
field sky_light_arrays: LenPrefixed<VarInt, LenPrefixed<VarInt, u8>> =,
field block_light_arrays: LenPrefixed<VarInt, LenPrefixed<VarInt, u8>> =,
}
packet ChunkData_Biomes3D_Bitmasks {
field chunk_x: i32 =,
field chunk_z: i32 =,

View File

@ -92,7 +92,7 @@ protocol_packet_ids!(
0x1f => WindowOpenHorse
0x20 => WorldBorderInit
0x21 => KeepAliveClientbound_i64
0x22 => ChunkData_Biomes3D_Bitmasks
0x22 => ChunkData_AndLight
0x23 => Effect
0x24 => Particle_f64
0x25 => UpdateLight_Arrays