From 0fc0fe41d4a8194a0f10f8a13e8194e89eb05d06 Mon Sep 17 00:00:00 2001 From: mat Date: Thu, 24 Apr 2025 18:42:56 -0400 Subject: [PATCH] delete some unused packet modules in game state --- .../src/packets/game/c_chat_preview.rs | 9 ------ .../src/packets/game/c_custom_sound.rs | 28 ------------------- .../src/packets/game/c_player_chat_header.rs | 10 ------- .../game/c_set_display_chat_preview.rs | 7 ----- .../packets/game/c_update_enabled_features.rs | 8 ------ 5 files changed, 62 deletions(-) delete mode 100644 azalea-protocol/src/packets/game/c_chat_preview.rs delete mode 100644 azalea-protocol/src/packets/game/c_custom_sound.rs delete mode 100644 azalea-protocol/src/packets/game/c_player_chat_header.rs delete mode 100644 azalea-protocol/src/packets/game/c_set_display_chat_preview.rs delete mode 100644 azalea-protocol/src/packets/game/c_update_enabled_features.rs diff --git a/azalea-protocol/src/packets/game/c_chat_preview.rs b/azalea-protocol/src/packets/game/c_chat_preview.rs deleted file mode 100644 index e0ddd2ec..00000000 --- a/azalea-protocol/src/packets/game/c_chat_preview.rs +++ /dev/null @@ -1,9 +0,0 @@ -use azalea_buf::AzBuf; -use azalea_chat::FormattedText; -use azalea_protocol_macros::ClientboundGamePacket; - -#[derive(Clone, Debug, AzBuf, ClientboundGamePacket)] -pub struct ClientboundChatPreview { - pub query_id: i32, - pub preview: Option, -} diff --git a/azalea-protocol/src/packets/game/c_custom_sound.rs b/azalea-protocol/src/packets/game/c_custom_sound.rs deleted file mode 100644 index 7daadb3a..00000000 --- a/azalea-protocol/src/packets/game/c_custom_sound.rs +++ /dev/null @@ -1,28 +0,0 @@ -use azalea_buf::AzBuf; -use azalea_core::resource_location::ResourceLocation; -use azalea_protocol_macros::ClientboundGamePacket; - -#[derive(Clone, Debug, AzBuf, ClientboundGamePacket)] -pub struct ClientboundCustomSound { - pub name: ResourceLocation, - pub source: SoundSource, - pub x: i32, - pub y: i32, - pub z: i32, - pub volume: f32, - pub pitch: f32, -} - -#[derive(AzBuf, Clone, Copy, Debug)] -pub enum SoundSource { - Master = 0, - Music = 1, - Records = 2, - Weather = 3, - Blocks = 4, - Hostile = 5, - Neutral = 6, - Players = 7, - Ambient = 8, - Voice = 9, -} diff --git a/azalea-protocol/src/packets/game/c_player_chat_header.rs b/azalea-protocol/src/packets/game/c_player_chat_header.rs deleted file mode 100644 index d7e84cc5..00000000 --- a/azalea-protocol/src/packets/game/c_player_chat_header.rs +++ /dev/null @@ -1,10 +0,0 @@ -use azalea_buf::AzBuf; -use azalea_crypto::{MessageSignature, SignedMessageHeader}; -use azalea_protocol_macros::ClientboundGamePacket; - -#[derive(Clone, Debug, AzBuf, ClientboundGamePacket)] -pub struct ClientboundPlayerChatHeader { - pub header: SignedMessageHeader, - pub header_signature: MessageSignature, - pub body_digest: Vec, -} diff --git a/azalea-protocol/src/packets/game/c_set_display_chat_preview.rs b/azalea-protocol/src/packets/game/c_set_display_chat_preview.rs deleted file mode 100644 index df2a62d4..00000000 --- a/azalea-protocol/src/packets/game/c_set_display_chat_preview.rs +++ /dev/null @@ -1,7 +0,0 @@ -use azalea_buf::AzBuf; -use azalea_protocol_macros::ClientboundGamePacket; - -#[derive(Clone, Debug, AzBuf, ClientboundGamePacket)] -pub struct ClientboundSetDisplayChatPreview { - pub enabled: bool, -} diff --git a/azalea-protocol/src/packets/game/c_update_enabled_features.rs b/azalea-protocol/src/packets/game/c_update_enabled_features.rs deleted file mode 100644 index d4dac483..00000000 --- a/azalea-protocol/src/packets/game/c_update_enabled_features.rs +++ /dev/null @@ -1,8 +0,0 @@ -use azalea_buf::AzBuf; -use azalea_core::resource_location::ResourceLocation; -use azalea_protocol_macros::ClientboundGamePacket; - -#[derive(Clone, Debug, AzBuf, ClientboundGamePacket)] -pub struct ClientboundUpdateEnabledFeatures { - pub features: Vec, -}