1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 23:44:38 +00:00

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
This commit is contained in:
Tijn 2023-12-17 22:49:04 +01:00 committed by GitHub
commit 8643ebd362
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,10 +37,17 @@ pub enum ParticleData {
EntityEffect, EntityEffect,
ExplosionEmitter, ExplosionEmitter,
Explosion, Explosion,
Gust,
GustEmitter,
SonicBoom,
FallingDust(BlockParticle), FallingDust(BlockParticle),
Firework, Firework,
Fishing, Fishing,
Flame, Flame,
CherryLeaves,
SculkSoul,
SculkCharge(SculkChargeParticle),
SculkChargePop,
SoulFireFlame, SoulFireFlame,
Soul, Soul,
Flash, Flash,
@ -60,6 +67,7 @@ pub enum ParticleData {
Portal, Portal,
Rain, Rain,
Smoke, Smoke,
WhiteSmoke,
Sneeze, Sneeze,
Spit, Spit,
SquidInk, SquidInk,
@ -101,6 +109,11 @@ pub enum ParticleData {
WaxOff, WaxOff,
ElectricSpark, ElectricSpark,
Scrape, Scrape,
Shriek(ShriekParticle),
EggCrack,
DustPlume,
GustDust,
TrialSpawnerDetection
} }
#[derive(Debug, Clone, McBuf)] #[derive(Debug, Clone, McBuf)]
@ -153,3 +166,14 @@ pub struct VibrationParticle {
#[var] #[var]
pub ticks: u32, 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
}