aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/handshake/s_intention.rs
blob: d0b6d6e35f62227518ea47a0fa550a71f812e89f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::hash::Hash;

use azalea_buf::AzBuf;
use azalea_protocol_macros::ServerboundHandshakePacket;

use crate::packets::ClientIntention;

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