aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/login/s_custom_query_answer.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-protocol/src/packets/login/s_custom_query_answer.rs')
-rw-r--r--azalea-protocol/src/packets/login/s_custom_query_answer.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/login/s_custom_query_answer.rs b/azalea-protocol/src/packets/login/s_custom_query_answer.rs
new file mode 100644
index 00000000..34820294
--- /dev/null
+++ b/azalea-protocol/src/packets/login/s_custom_query_answer.rs
@@ -0,0 +1,11 @@
+use std::hash::Hash;
+
+use azalea_buf::{AzBuf, UnsizedByteArray};
+use azalea_protocol_macros::ServerboundLoginPacket;
+
+#[derive(Hash, Clone, Debug, AzBuf, ServerboundLoginPacket)]
+pub struct ServerboundCustomQueryAnswer {
+ #[var]
+ pub transaction_id: u32,
+ pub data: Option<UnsizedByteArray>,
+}