aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/c_player_info_update.rs
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-12-15 11:14:40 +0930
committermat <git@matdoes.dev>2025-12-15 11:14:40 +0930
commitdcbd690f21665e22ea250024a1aa85dec34e6c9e (patch)
tree411c76eb92ca1cfe284e56f47bc0abd4079a3364 /azalea-protocol/src/packets/game/c_player_info_update.rs
parentb0a2a809331b0f781517649857d31e0aec67d300 (diff)
downloadazalea-drasl-dcbd690f21665e22ea250024a1aa85dec34e6c9e.tar.xz
sort derives with cargo sort-derives
might add to ci later, unsure how to do it without adding significant friction for contributors though
Diffstat (limited to 'azalea-protocol/src/packets/game/c_player_info_update.rs')
-rw-r--r--azalea-protocol/src/packets/game/c_player_info_update.rs20
1 files changed, 10 insertions, 10 deletions
diff --git a/azalea-protocol/src/packets/game/c_player_info_update.rs b/azalea-protocol/src/packets/game/c_player_info_update.rs
index 64a2b5b0..4a18233e 100644
--- a/azalea-protocol/src/packets/game/c_player_info_update.rs
+++ b/azalea-protocol/src/packets/game/c_player_info_update.rs
@@ -12,7 +12,7 @@ use uuid::Uuid;
use super::s_chat_session_update::RemoteChatSessionData;
-#[derive(Clone, Debug, PartialEq, ClientboundGamePacket)]
+#[derive(ClientboundGamePacket, Clone, Debug, PartialEq)]
pub struct ClientboundPlayerInfoUpdate {
pub actions: ActionEnumSet,
pub entries: Vec<PlayerInfoEntry>,
@@ -30,37 +30,37 @@ pub struct PlayerInfoEntry {
pub chat_session: Option<RemoteChatSessionData>,
}
-#[derive(Clone, Debug, AzBuf)]
+#[derive(AzBuf, Clone, Debug)]
pub struct AddPlayerAction {
pub name: String,
pub properties: GameProfileProperties,
}
-#[derive(Clone, Debug, AzBuf)]
+#[derive(AzBuf, Clone, Debug)]
pub struct InitializeChatAction {
pub chat_session: Option<RemoteChatSessionData>,
}
-#[derive(Clone, Debug, AzBuf)]
+#[derive(AzBuf, Clone, Debug)]
pub struct UpdateGameModeAction {
pub game_mode: GameMode,
}
-#[derive(Clone, Debug, AzBuf)]
+#[derive(AzBuf, Clone, Debug)]
pub struct UpdateListedAction {
pub listed: bool,
}
-#[derive(Clone, Debug, AzBuf)]
+#[derive(AzBuf, Clone, Debug)]
pub struct UpdateLatencyAction {
#[var]
pub latency: i32,
}
-#[derive(Clone, Debug, AzBuf)]
+#[derive(AzBuf, Clone, Debug)]
pub struct UpdateDisplayNameAction {
pub display_name: Option<Box<FormattedText>>,
}
-#[derive(Clone, Debug, AzBuf)]
+#[derive(AzBuf, Clone, Debug)]
pub struct UpdateHatAction {
pub update_hat: bool,
}
-#[derive(Clone, Debug, AzBuf)]
+#[derive(AzBuf, Clone, Debug)]
pub struct UpdateListOrderAction {
#[var]
pub list_order: i32,
@@ -169,7 +169,7 @@ impl AzaleaWrite for ClientboundPlayerInfoUpdate {
}
}
-#[derive(Clone, Debug, PartialEq, Eq)]
+#[derive(Clone, Debug, Eq, PartialEq)]
pub struct ActionEnumSet {
pub add_player: bool,
pub initialize_chat: bool,