aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/clientbound_chat_packet.rs
blob: 3786993af853c30eed71f20bd57d858644f233ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use azalea_chat::component::Component;
use packet_macros::{GamePacket, McBufReadable, McBufWritable};
use uuid::Uuid;

#[derive(Clone, Debug, GamePacket)]
pub struct ClientboundChatPacket {
    pub message: Component,
    pub type_: ChatType,
    pub sender: Uuid,
}

#[derive(Clone, Debug, Copy, McBufReadable, McBufWritable)]
pub enum ChatType {
    Chat = 0,
    System = 1,
    GameInfo = 2,
}