aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/c_update_mob_effect.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-protocol/src/packets/game/c_update_mob_effect.rs')
-rwxr-xr-xazalea-protocol/src/packets/game/c_update_mob_effect.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/game/c_update_mob_effect.rs b/azalea-protocol/src/packets/game/c_update_mob_effect.rs
new file mode 100755
index 00000000..6a31ccab
--- /dev/null
+++ b/azalea-protocol/src/packets/game/c_update_mob_effect.rs
@@ -0,0 +1,15 @@
+use azalea_buf::AzBuf;
+use azalea_protocol_macros::ClientboundGamePacket;
+use azalea_registry::MobEffect;
+
+#[derive(Clone, Debug, AzBuf, ClientboundGamePacket)]
+pub struct ClientboundUpdateMobEffect {
+ #[var]
+ pub entity_id: u32,
+ pub mob_effect: MobEffect,
+ #[var]
+ pub effect_amplifier: u32,
+ #[var]
+ pub effect_duration_ticks: u32,
+ pub flags: u8,
+}