diff options
Diffstat (limited to 'azalea-protocol/src/packets/handshake')
| -rwxr-xr-x | azalea-protocol/src/packets/handshake/mod.rs | 12 | ||||
| -rwxr-xr-x | azalea-protocol/src/packets/handshake/s_intention.rs | 15 |
2 files changed, 27 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/handshake/mod.rs b/azalea-protocol/src/packets/handshake/mod.rs new file mode 100755 index 00000000..90a312e7 --- /dev/null +++ b/azalea-protocol/src/packets/handshake/mod.rs @@ -0,0 +1,12 @@ +// NOTE: This file is generated automatically by codegen/packet.py. +// Don't edit it directly! + +use azalea_protocol_macros::declare_state_packets; + +declare_state_packets!(HandshakePacket, + Clientbound => [ + ], + Serverbound => [ + intention, + ] +); diff --git a/azalea-protocol/src/packets/handshake/s_intention.rs b/azalea-protocol/src/packets/handshake/s_intention.rs new file mode 100755 index 00000000..566ada30 --- /dev/null +++ b/azalea-protocol/src/packets/handshake/s_intention.rs @@ -0,0 +1,15 @@ +use std::hash::Hash; + +use azalea_buf::AzBuf; +use azalea_protocol_macros::ServerboundHandshakePacket; + +use crate::packets::ClientIntention; + +#[derive(Hash, Clone, Debug, AzBuf, ServerboundHandshakePacket)] +pub struct ServerboundIntention { + #[var] + pub protocol_version: i32, + pub hostname: String, + pub port: u16, + pub intention: ClientIntention, +} |
