azalea_protocol/packets/handshaking/
client_intention_packet.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::hash::Hash;

use azalea_buf::McBuf;
use azalea_protocol_macros::ServerboundHandshakePacket;

use crate::packets::ClientIntention;

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