Pumpkin/pumpkin-protocol/src/java/client/play/remove_mob_effect.rs
Alexander Medvedev b58822319d fix: CI
2026-01-28 23:40:48 +01:00

22 lines
489 B
Rust

use crate::codec::var_int::VarInt;
use pumpkin_data::packet::clientbound::PLAY_REMOVE_MOB_EFFECT;
use pumpkin_macros::java_packet;
use serde::Serialize;
#[derive(Serialize)]
#[java_packet(PLAY_REMOVE_MOB_EFFECT)]
pub struct CRemoveMobEffect {
pub entity_id: VarInt,
pub effect_id: VarInt,
}
impl CRemoveMobEffect {
#[must_use]
pub const fn new(entity_id: VarInt, effect_id: VarInt) -> Self {
Self {
entity_id,
effect_id,
}
}
}