aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/handshake
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-protocol/src/packets/handshake')
-rwxr-xr-xazalea-protocol/src/packets/handshake/client_intention_packet.rs24
1 files changed, 1 insertions, 23 deletions
diff --git a/azalea-protocol/src/packets/handshake/client_intention_packet.rs b/azalea-protocol/src/packets/handshake/client_intention_packet.rs
index a92d65f6..6216ddc4 100755
--- a/azalea-protocol/src/packets/handshake/client_intention_packet.rs
+++ b/azalea-protocol/src/packets/handshake/client_intention_packet.rs
@@ -1,9 +1,7 @@
-use crate::{mc_buf::Writable, packets::ConnectionProtocol};
+use crate::packets::ConnectionProtocol;
use packet_macros::HandshakePacket;
use std::hash::Hash;
-use super::HandshakePacket;
-
#[derive(Hash, Clone, Debug, HandshakePacket)]
pub struct ClientIntentionPacket {
#[varint]
@@ -12,23 +10,3 @@ pub struct ClientIntentionPacket {
pub port: u16,
pub intention: ConnectionProtocol,
}
-
-// impl ClientIntentionPacket {
-// pub fn get(self) -> HandshakePacket {
-// HandshakePacket::ClientIntentionPacket(self)
-// }
-
-// pub fn write(&self, buf: &mut Vec<u8>) -> Result<(), std::io::Error> {
-// buf.write_varint(self.protocol_version as i32)?;
-// buf.write_utf(&self.hostname)?;
-// buf.write_short(self.port as i16)?;
-// buf.write_varint(self.intention as i32)?;
-// Ok(())
-// }
-
-// pub async fn read<T: tokio::io::AsyncRead + std::marker::Unpin + std::marker::Send>(
-// buf: &mut T,
-// ) -> Result<HandshakePacket, String> {
-// todo!()
-// }
-// }