azalea_protocol/packets/handshake/
s_intention.rs

1use std::hash::Hash;
2
3use azalea_buf::AzBuf;
4use azalea_protocol_macros::ServerboundHandshakePacket;
5
6use crate::packets::ClientIntention;
7
8#[derive(Hash, Clone, Debug, AzBuf, ServerboundHandshakePacket)]
9pub struct ServerboundIntention {
10    #[var]
11    pub protocol_version: i32,
12    pub hostname: String,
13    pub port: u16,
14    pub intention: ClientIntention,
15}