aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/login/clientbound_hello_packet.rs
blob: f3724c18011bab4b83f04a1c525794a0a1b93596 (plain)
1
2
3
4
5
6
7
8
9
10
11
use azalea_buf::McBuf;
use packet_macros::LoginPacket;

#[derive(Clone, Debug, McBuf, LoginPacket)]
pub struct ClientboundHelloPacket {
    // TODO: make this len thing work
    // #[len(20)]
    pub server_id: String,
    pub public_key: Vec<u8>,
    pub nonce: Vec<u8>,
}