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:
parent
6b3a047e85
commit
8643ebd362
1 changed files with 24 additions and 0 deletions
|
@ -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
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue