Pumpkin/pumpkin-protocol/src/client/play/c_combat_death.rs
Alexander Medvedev ee485056fb rename pumpkin-core to pumpkin-util
I see that there is an confusion between the pumpkin-core crate,  People often think that this is the most important one
2025-01-09 13:12:57 +01:00

19 lines
414 B
Rust

use pumpkin_macros::client_packet;
use pumpkin_util::text::TextComponent;
use serde::Serialize;
use crate::VarInt;
#[derive(Serialize)]
#[client_packet("play:player_combat_kill")]
pub struct CCombatDeath<'a> {
player_id: VarInt,
message: &'a TextComponent,
}
impl<'a> CCombatDeath<'a> {
pub fn new(player_id: VarInt, message: &'a TextComponent) -> Self {
Self { player_id, message }
}
}