diff options
| author | mat <github@matdoes.dev> | 2022-05-07 21:54:27 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-05-07 21:54:27 -0500 |
| commit | ffba10185401ebdbfd93b1181eda04ce08fa72d5 (patch) | |
| tree | 5934033d0ffad3d027e69ed465478fca2438916c /azalea-protocol/src/packets/game/clientbound_chat_packet.rs | |
| parent | f62a681474df698d87deb43c71238b83a26f0f1f (diff) | |
| download | azalea-drasl-ffba10185401ebdbfd93b1181eda04ce08fa72d5.tar.xz | |
chat and sound packets
Diffstat (limited to 'azalea-protocol/src/packets/game/clientbound_chat_packet.rs')
| -rw-r--r-- | azalea-protocol/src/packets/game/clientbound_chat_packet.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/game/clientbound_chat_packet.rs b/azalea-protocol/src/packets/game/clientbound_chat_packet.rs new file mode 100644 index 00000000..3786993a --- /dev/null +++ b/azalea-protocol/src/packets/game/clientbound_chat_packet.rs @@ -0,0 +1,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, +} |
