aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/clientbound_player_chat_packet.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-protocol/src/packets/game/clientbound_player_chat_packet.rs')
-rw-r--r--azalea-protocol/src/packets/game/clientbound_player_chat_packet.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/game/clientbound_player_chat_packet.rs b/azalea-protocol/src/packets/game/clientbound_player_chat_packet.rs
new file mode 100644
index 00000000..e6941f25
--- /dev/null
+++ b/azalea-protocol/src/packets/game/clientbound_player_chat_packet.rs
@@ -0,0 +1,21 @@
+use azalea_chat::component::Component;
+use azalea_crypto::SaltSignaturePair;
+use packet_macros::{GamePacket, McBuf};
+
+#[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>,
+}