aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/c_commands.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_commands.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_commands.rs')
-rw-r--r--azalea-protocol/src/packets/game/c_commands.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/azalea-protocol/src/packets/game/c_commands.rs b/azalea-protocol/src/packets/game/c_commands.rs
index 758c8f27..f8d95ac9 100644
--- a/azalea-protocol/src/packets/game/c_commands.rs
+++ b/azalea-protocol/src/packets/game/c_commands.rs
@@ -6,14 +6,14 @@ use azalea_protocol_macros::ClientboundGamePacket;
use azalea_registry::identifier::Identifier;
use tracing::warn;
-#[derive(Clone, Debug, AzBuf, PartialEq, ClientboundGamePacket)]
+#[derive(AzBuf, ClientboundGamePacket, Clone, Debug, PartialEq)]
pub struct ClientboundCommands {
pub entries: Vec<BrigadierNodeStub>,
#[var]
pub root_index: u32,
}
-#[derive(Debug, Clone, PartialEq)]
+#[derive(Clone, Debug, PartialEq)]
pub struct BrigadierNodeStub {
pub is_executable: bool,
pub children: Vec<u32>,
@@ -22,7 +22,7 @@ pub struct BrigadierNodeStub {
pub is_restricted: bool,
}
-#[derive(Debug, Clone, Eq)]
+#[derive(Clone, Debug, Eq)]
pub struct BrigadierNumber<T> {
pub min: Option<T>,
pub max: Option<T>,
@@ -82,7 +82,7 @@ impl<T: AzaleaWrite> AzaleaWrite for BrigadierNumber<T> {
}
}
-#[derive(Debug, Clone, Copy, AzBuf, PartialEq, Eq)]
+#[derive(AzBuf, Clone, Copy, Debug, Eq, PartialEq)]
pub enum BrigadierString {
/// Reads a single word
SingleWord = 0,
@@ -94,7 +94,7 @@ pub enum BrigadierString {
}
// see ArgumentTypeInfos.java
-#[derive(Debug, Clone, PartialEq, AzBuf)]
+#[derive(AzBuf, Clone, Debug, PartialEq)]
pub enum BrigadierParser {
Bool,
Float(BrigadierNumber<f32>),
@@ -155,7 +155,7 @@ pub enum BrigadierParser {
Uuid,
}
-#[derive(Debug, Clone, PartialEq, Eq)]
+#[derive(Clone, Debug, Eq, PartialEq)]
pub struct EntityParser {
pub single: bool,
pub players_only: bool,
@@ -310,7 +310,7 @@ impl AzaleaWrite for BrigadierNodeStub {
}
}
-#[derive(Debug, Clone, PartialEq)]
+#[derive(Clone, Debug, PartialEq)]
pub enum NodeType {
Root,
Literal {