diff options
Diffstat (limited to 'azalea-protocol/src/packets/game/c_light_update.rs')
| -rwxr-xr-x | azalea-protocol/src/packets/game/c_light_update.rs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/game/c_light_update.rs b/azalea-protocol/src/packets/game/c_light_update.rs new file mode 100755 index 00000000..72523291 --- /dev/null +++ b/azalea-protocol/src/packets/game/c_light_update.rs @@ -0,0 +1,22 @@ +use azalea_buf::AzBuf; +use azalea_core::bitset::BitSet; +use azalea_protocol_macros::ClientboundGamePacket; + +#[derive(Clone, Debug, AzBuf, ClientboundGamePacket)] +pub struct ClientboundLightUpdate { + #[var] + pub x: i32, + #[var] + pub z: i32, + pub light_data: ClientboundLightUpdatePacketData, +} + +#[derive(Clone, Debug, AzBuf)] +pub struct ClientboundLightUpdatePacketData { + pub sky_y_mask: BitSet, + pub block_y_mask: BitSet, + pub empty_sky_y_mask: BitSet, + pub empty_block_y_mask: BitSet, + pub sky_updates: Vec<Vec<u8>>, + pub block_updates: Vec<Vec<u8>>, +} |
