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