steel_protocol/packets/game/c_player_combat_kill.rs
1use steel_macros::{ClientPacket, WriteTo};
2use steel_registry::packets::play::C_PLAYER_COMBAT_KILL;
3use text_components::TextComponent;
4
5#[derive(ClientPacket, WriteTo, Clone, Debug)]
6#[packet_id(Play = C_PLAYER_COMBAT_KILL)]
7pub struct CPlayerCombatKill {
8 /// Entity ID of the player that died (should match the client's entity ID).
9 #[write(as = VarInt)]
10 pub player_id: i32,
11 /// The death message.
12 pub message: TextComponent,
13}