From 8643ebd3628621414ff0c9fd41fb4b07b70d581e Mon Sep 17 00:00:00 2001 From: Tijn <53775078+112batman@users.noreply.github.com> Date: Sun, 17 Dec 2023 22:49:04 +0100 Subject: Add missing particles (#125) * Add missing particles Has all particles present on https://wiki.vg/Protocol#Particle as of 17 December 2023. This also fixes particles being parsed as the incorrect type due to id shifts caused by newly added particles. * Add missing comma --- azalea-core/src/particle.rs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/azalea-core/src/particle.rs b/azalea-core/src/particle.rs index 8e48255f..b7393922 100755 --- a/azalea-core/src/particle.rs +++ b/azalea-core/src/particle.rs @@ -37,10 +37,17 @@ pub enum ParticleData { EntityEffect, ExplosionEmitter, Explosion, + Gust, + GustEmitter, + SonicBoom, FallingDust(BlockParticle), Firework, Fishing, Flame, + CherryLeaves, + SculkSoul, + SculkCharge(SculkChargeParticle), + SculkChargePop, SoulFireFlame, Soul, Flash, @@ -60,6 +67,7 @@ pub enum ParticleData { Portal, Rain, Smoke, + WhiteSmoke, Sneeze, Spit, SquidInk, @@ -101,6 +109,11 @@ pub enum ParticleData { WaxOff, ElectricSpark, Scrape, + Shriek(ShriekParticle), + EggCrack, + DustPlume, + GustDust, + TrialSpawnerDetection } #[derive(Debug, Clone, McBuf)] @@ -153,3 +166,14 @@ pub struct VibrationParticle { #[var] pub ticks: u32, } + +#[derive(Debug, Clone, McBuf)] +pub struct SculkChargeParticle { + pub roll: f32 +} + +#[derive(Debug, Clone, McBuf)] +pub struct ShriekParticle { + #[var] + pub delay: i32 // The time in ticks before the particle is displayed +} -- cgit v1.2.3