aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/login/c_hello.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-protocol/src/packets/login/c_hello.rs')
-rwxr-xr-xazalea-protocol/src/packets/login/c_hello.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/login/c_hello.rs b/azalea-protocol/src/packets/login/c_hello.rs
new file mode 100755
index 00000000..6011ec23
--- /dev/null
+++ b/azalea-protocol/src/packets/login/c_hello.rs
@@ -0,0 +1,11 @@
+use azalea_buf::AzBuf;
+use azalea_protocol_macros::ClientboundLoginPacket;
+
+#[derive(Clone, Debug, AzBuf, ClientboundLoginPacket)]
+pub struct ClientboundHello {
+ #[limit(20)]
+ pub server_id: String,
+ pub public_key: Vec<u8>,
+ pub challenge: Vec<u8>,
+ pub should_authenticate: bool,
+}