aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/handshake/client_intention_packet.rs
blob: ef47bba336d5367988c3f87d4f7c0a31112ea5fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::packets::ConnectionProtocol;
use azalea_buf::McBuf;
use packet_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,
}