diff --git a/azalea-protocol/src/connect.rs b/azalea-protocol/src/connect.rs index f64d9eb82..f33ce2a53 100755 --- a/azalea-protocol/src/connect.rs +++ b/azalea-protocol/src/connect.rs @@ -61,6 +61,7 @@ pub struct WriteConnection { /// resolver, /// connect::Connection, /// packets::{ +/// self, /// ClientIntention, PROTOCOL_VERSION, /// login::{ /// ClientboundLoginPacket, @@ -115,7 +116,13 @@ pub struct WriteConnection { /// return Err("login disconnect".into()); /// } /// ClientboundLoginPacket::CustomQuery(p) => {} -/// ClientboundLoginPacket::CookieRequest(_) => {} +/// ClientboundLoginPacket::CookieRequest(p) => { +/// conn.write(packets::login::ServerboundCookieResponse { +/// key: p.key, +/// payload: None, +/// }) +/// .await?; +/// } /// } /// }; /// diff --git a/azalea-protocol/src/packets/config/c_finish_configuration.rs b/azalea-protocol/src/packets/config/c_finish_configuration.rs index e3f3e5a59..ea6e6d273 100644 --- a/azalea-protocol/src/packets/config/c_finish_configuration.rs +++ b/azalea-protocol/src/packets/config/c_finish_configuration.rs @@ -2,4 +2,4 @@ use azalea_buf::AzBuf; use azalea_protocol_macros::ClientboundConfigPacket; #[derive(Clone, Debug, AzBuf, ClientboundConfigPacket)] -pub struct ClientboundFinishConfiguration {} +pub struct ClientboundFinishConfiguration; diff --git a/azalea-protocol/src/packets/config/s_finish_configuration.rs b/azalea-protocol/src/packets/config/s_finish_configuration.rs index a4d94fb19..dc7d43165 100644 --- a/azalea-protocol/src/packets/config/s_finish_configuration.rs +++ b/azalea-protocol/src/packets/config/s_finish_configuration.rs @@ -2,4 +2,4 @@ use azalea_buf::AzBuf; use azalea_protocol_macros::ServerboundConfigPacket; #[derive(Clone, Debug, AzBuf, ServerboundConfigPacket)] -pub struct ServerboundFinishConfiguration {} +pub struct ServerboundFinishConfiguration; diff --git a/azalea-protocol/src/packets/game/c_chunk_batch_start.rs b/azalea-protocol/src/packets/game/c_chunk_batch_start.rs index 8b0555dc9..b5cd1ba25 100644 --- a/azalea-protocol/src/packets/game/c_chunk_batch_start.rs +++ b/azalea-protocol/src/packets/game/c_chunk_batch_start.rs @@ -2,4 +2,4 @@ use azalea_buf::AzBuf; use azalea_protocol_macros::ClientboundGamePacket; #[derive(Clone, Debug, AzBuf, ClientboundGamePacket)] -pub struct ClientboundChunkBatchStart {} +pub struct ClientboundChunkBatchStart; diff --git a/azalea-protocol/src/packets/game/c_player_chat.rs b/azalea-protocol/src/packets/game/c_player_chat.rs index 0e9960f2c..3628fa956 100644 --- a/azalea-protocol/src/packets/game/c_player_chat.rs +++ b/azalea-protocol/src/packets/game/c_player_chat.rs @@ -88,16 +88,6 @@ pub struct MessageSignatureCache { pub entries: Vec>, } -// impl MessageSignatureCache { -// pub fn unpacker(&self) -> impl Fn(u32) -> Option { - -// } -// } - -// impl PackedSignedMessageBody { -// pub fn unpack(&self, unpacker: impl Fn(u32) -> Option) -// {} } - impl ClientboundPlayerChat { /// Returns the content of the message. If you want to get the FormattedText /// for the whole message including the sender part, use diff --git a/azalea-protocol/src/packets/game/c_player_combat_enter.rs b/azalea-protocol/src/packets/game/c_player_combat_enter.rs index 8c344b499..ee58e2779 100755 --- a/azalea-protocol/src/packets/game/c_player_combat_enter.rs +++ b/azalea-protocol/src/packets/game/c_player_combat_enter.rs @@ -3,4 +3,4 @@ use azalea_protocol_macros::ClientboundGamePacket; /// Unused in vanilla. #[derive(Clone, Debug, AzBuf, ClientboundGamePacket)] -pub struct ClientboundPlayerCombatEnter {} +pub struct ClientboundPlayerCombatEnter; diff --git a/azalea-protocol/src/packets/game/c_start_configuration.rs b/azalea-protocol/src/packets/game/c_start_configuration.rs index 6955b70d8..d1c60d5e2 100644 --- a/azalea-protocol/src/packets/game/c_start_configuration.rs +++ b/azalea-protocol/src/packets/game/c_start_configuration.rs @@ -2,4 +2,4 @@ use azalea_buf::AzBuf; use azalea_protocol_macros::ClientboundGamePacket; #[derive(Clone, Debug, AzBuf, ClientboundGamePacket)] -pub struct ClientboundStartConfiguration {} +pub struct ClientboundStartConfiguration; diff --git a/azalea-protocol/src/packets/game/s_client_tick_end.rs b/azalea-protocol/src/packets/game/s_client_tick_end.rs index d8d930498..221525ec9 100644 --- a/azalea-protocol/src/packets/game/s_client_tick_end.rs +++ b/azalea-protocol/src/packets/game/s_client_tick_end.rs @@ -2,4 +2,4 @@ use azalea_buf::AzBuf; use azalea_protocol_macros::ServerboundGamePacket; #[derive(Clone, Debug, AzBuf, ServerboundGamePacket)] -pub struct ServerboundClientTickEnd {} +pub struct ServerboundClientTickEnd; diff --git a/azalea-protocol/src/packets/game/s_configuration_acknowledged.rs b/azalea-protocol/src/packets/game/s_configuration_acknowledged.rs index 58e27abbe..3e1374949 100644 --- a/azalea-protocol/src/packets/game/s_configuration_acknowledged.rs +++ b/azalea-protocol/src/packets/game/s_configuration_acknowledged.rs @@ -2,4 +2,4 @@ use azalea_buf::AzBuf; use azalea_protocol_macros::ServerboundGamePacket; #[derive(Clone, Debug, AzBuf, ServerboundGamePacket)] -pub struct ServerboundConfigurationAcknowledged {} +pub struct ServerboundConfigurationAcknowledged; diff --git a/azalea-protocol/src/packets/login/s_login_acknowledged.rs b/azalea-protocol/src/packets/login/s_login_acknowledged.rs index e36648b63..263d58c63 100644 --- a/azalea-protocol/src/packets/login/s_login_acknowledged.rs +++ b/azalea-protocol/src/packets/login/s_login_acknowledged.rs @@ -2,4 +2,4 @@ use azalea_buf::AzBuf; use azalea_protocol_macros::ServerboundLoginPacket; #[derive(Clone, Debug, AzBuf, ServerboundLoginPacket)] -pub struct ServerboundLoginAcknowledged {} +pub struct ServerboundLoginAcknowledged; diff --git a/azalea-protocol/src/packets/status/s_status_request.rs b/azalea-protocol/src/packets/status/s_status_request.rs index 662d74bfd..53fdbcaa4 100755 --- a/azalea-protocol/src/packets/status/s_status_request.rs +++ b/azalea-protocol/src/packets/status/s_status_request.rs @@ -2,4 +2,4 @@ use azalea_buf::AzBuf; use azalea_protocol_macros::ServerboundStatusPacket; #[derive(Clone, Debug, AzBuf, ServerboundStatusPacket)] -pub struct ServerboundStatusRequest {} +pub struct ServerboundStatusRequest; diff --git a/azalea/src/auto_tool.rs b/azalea/src/auto_tool.rs index 1824e13c5..5fcb8037a 100644 --- a/azalea/src/auto_tool.rs +++ b/azalea/src/auto_tool.rs @@ -2,7 +2,7 @@ use azalea_block::{Block, BlockState}; use azalea_client::{inventory::Inventory, Client}; use azalea_entity::{FluidOnEyes, Physics}; use azalea_inventory::{components, ItemStack, Menu}; -use azalea_registry::{DataComponentKind, Fluid}; +use azalea_registry::Fluid; #[derive(Debug)] pub struct BestToolResult {