diff options
| author | Tijn <53775078+112batman@users.noreply.github.com> | 2023-12-17 22:49:04 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-17 15:49:04 -0600 |
| commit | 8643ebd3628621414ff0c9fd41fb4b07b70d581e (patch) | |
| tree | 08c9513617753ace79904cd3a3d9d76a4a6f7e22 | |
| parent | 6b3a047e8572a5c8b1216635da6e9fc532ffb677 (diff) | |
| download | azalea-drasl-8643ebd3628621414ff0c9fd41fb4b07b70d581e.tar.xz | |
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
| -rwxr-xr-x | azalea-core/src/particle.rs | 24 |
1 files changed, 24 insertions, 0 deletions
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 +} |
