aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/configuration
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2024-10-23 00:08:13 -0500
committerGitHub <noreply@github.com>2024-10-23 00:08:13 -0500
commit40e4096d2435533eacb817ad5a5e12c7ced8fa5c (patch)
tree937c4024bb7f69b19b6d053e02a9e5b3b02d98aa /azalea-protocol/src/packets/configuration
parentabc7b43b8c641b6dc4b107bb9624b86235bd36db (diff)
downloadazalea-drasl-40e4096d2435533eacb817ad5a5e12c7ced8fa5c.tar.xz
1.21.2 (#171)
* partially implement 24w35a * start updating to 24w39a + itemcomponent codegen * fix codegen and broken packets to finish updating to 24w39a :D * update to 1.21.2 except for blocks * update ServerboundPlayerInputPacket impl
Diffstat (limited to 'azalea-protocol/src/packets/configuration')
-rw-r--r--azalea-protocol/src/packets/configuration/serverbound_client_information_packet.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/configuration/serverbound_client_information_packet.rs b/azalea-protocol/src/packets/configuration/serverbound_client_information_packet.rs
index fb980a46..d00c30ec 100644
--- a/azalea-protocol/src/packets/configuration/serverbound_client_information_packet.rs
+++ b/azalea-protocol/src/packets/configuration/serverbound_client_information_packet.rs
@@ -30,6 +30,7 @@ pub struct ClientInformation {
/// Whether the client should show up as "Anonymous Player" in the server
/// list.
pub allows_listing: bool,
+ pub particle_status: ParticleStatus,
}
impl Default for ClientInformation {
@@ -43,6 +44,7 @@ impl Default for ClientInformation {
main_hand: HumanoidArm::Right,
text_filtering_enabled: false,
allows_listing: false,
+ particle_status: ParticleStatus::default(),
}
}
}
@@ -77,6 +79,14 @@ pub struct ModelCustomization {
pub hat: bool,
}
+#[derive(McBuf, Clone, Copy, Debug, PartialEq, Eq, Default)]
+pub enum ParticleStatus {
+ #[default]
+ All,
+ Decreased,
+ Minimal,
+}
+
impl Default for ModelCustomization {
fn default() -> Self {
Self {
@@ -169,6 +179,7 @@ mod tests {
main_hand: HumanoidArm::Left,
text_filtering_enabled: true,
allows_listing: true,
+ particle_status: ParticleStatus::Decreased,
};
let mut buf = Vec::new();
data.write_into(&mut buf).unwrap();