1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 06:16:04 +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
parent 6b3a047e85
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,
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
}