aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-04-24 18:42:56 -0400
committermat <git@matdoes.dev>2025-04-24 18:42:56 -0400
commit0fc0fe41d4a8194a0f10f8a13e8194e89eb05d06 (patch)
treee0b08c3a0e7582d65a11b349dd3034af674cc0f9 /azalea-protocol/src
parent8012fb90b5b2b09674f3307a27ed97cbfcc10571 (diff)
downloadazalea-drasl-0fc0fe41d4a8194a0f10f8a13e8194e89eb05d06.tar.xz
delete some unused packet modules in game state
Diffstat (limited to 'azalea-protocol/src')
-rw-r--r--azalea-protocol/src/packets/game/c_chat_preview.rs9
-rw-r--r--azalea-protocol/src/packets/game/c_custom_sound.rs28
-rw-r--r--azalea-protocol/src/packets/game/c_player_chat_header.rs10
-rw-r--r--azalea-protocol/src/packets/game/c_set_display_chat_preview.rs7
-rw-r--r--azalea-protocol/src/packets/game/c_update_enabled_features.rs8
5 files changed, 0 insertions, 62 deletions
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<FormattedText>,
-}
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<u8>,
-}
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<ResourceLocation>,
-}