aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/login/c_hello.rs
blob: 3e87418fbea87f1cd50b24a67ea0b6ae7e5f65c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
use azalea_buf::AzBuf;
use azalea_protocol_macros::ClientboundLoginPacket;

#[derive(AzBuf, ClientboundLoginPacket, Clone, Debug, PartialEq)]
pub struct ClientboundHello {
    #[limit(20)]
    pub server_id: String,
    pub public_key: Vec<u8>,
    pub challenge: Vec<u8>,
    pub should_authenticate: bool,
}