mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
17 lines
352 B
Rust
17 lines
352 B
Rust
use azalea_chat::component::Component;
|
|
use packet_macros::{GamePacket, McBuf};
|
|
use uuid::Uuid;
|
|
|
|
#[derive(Clone, Debug, GamePacket)]
|
|
pub struct ClientboundChatPacket {
|
|
pub message: Component,
|
|
pub type_: ChatType,
|
|
pub sender: Uuid,
|
|
}
|
|
|
|
#[derive(Clone, Debug, Copy, McBuf)]
|
|
pub enum ChatType {
|
|
Chat = 0,
|
|
System = 1,
|
|
GameInfo = 2,
|
|
}
|