aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/handshake/client_intention_packet.rs
blob: 410c11ab8bbbeb226349f0ef8cab2e0eee6f2afe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
use crate::packets::ConnectionProtocol;
use packet_macros::{HandshakePacket, McBuf};
use std::hash::Hash;

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