blob: 4aac93f460832fc48fa357c3b9f89c99a3534234 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
use azalea_buf::McBuf;
use azalea_chat::component::Component;
use azalea_crypto::SaltSignaturePair;
use packet_macros::GamePacket;
#[derive(Clone, Debug, McBuf, GamePacket)]
pub struct ClientboundPlayerChatPacket {
pub signed_content: Component,
pub unsigned_content: Option<Component>,
#[var]
pub type_id: i32,
pub sender: ChatSender,
pub timestamp: u64,
pub salt_signature: SaltSignaturePair,
}
#[derive(Clone, Debug, McBuf)]
pub struct ChatSender {
pub uuid: uuid::Uuid,
pub name: Component,
pub team_name: Option<Component>,
}
|