aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/handshake/client_intention_packet.rs
blob: 1900d47625b8854b327627d6772504f3af0c5b74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::packets::ConnectionProtocol;
use azalea_buf::McBuf;
use azalea_protocol_macros::ServerboundHandshakePacket;
use std::hash::Hash;

#[derive(Hash, Clone, Debug, McBuf, ServerboundHandshakePacket)]
pub struct ClientIntentionPacket {
    #[var]
    pub protocol_version: u32,
    pub hostname: String,
    pub port: u16,
    pub intention: ConnectionProtocol,
}