azalea_protocol/packets/game/
clientbound_update_mob_effect_packet.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use azalea_buf::McBuf;
use azalea_protocol_macros::ClientboundGamePacket;
use azalea_registry::MobEffect;

#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
pub struct ClientboundUpdateMobEffectPacket {
    #[var]
    pub entity_id: u32,
    pub mob_effect: MobEffect,
    #[var]
    pub effect_amplifier: u32,
    #[var]
    pub effect_duration_ticks: u32,
    pub flags: u8,
}