I see that there is an confusion between the pumpkin-core crate, People often think that this is the most important one
19 lines
414 B
Rust
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 }
|
|
}
|
|
}
|