azalea_protocol/packets/game/
c_explode.rs

1use azalea_buf::AzBuf;
2use azalea_core::position::Vec3;
3use azalea_entity::particle::Particle;
4use azalea_protocol_macros::ClientboundGamePacket;
5use azalea_registry::SoundEvent;
6
7#[derive(Clone, Debug, AzBuf, PartialEq, ClientboundGamePacket)]
8pub struct ClientboundExplode {
9    pub center: Vec3,
10    pub radius: f32,
11    pub block_count: i32,
12    pub player_knockback: Option<Vec3>,
13    pub explosion_particle: Particle,
14    pub explosion_sound: SoundEvent,
15    pub block_particles: Vec<ExplosionParticleInfo>,
16}
17
18#[derive(Clone, Debug, AzBuf, PartialEq)]
19pub struct ExplosionParticleInfo {
20    pub particle: Particle,
21    pub scaling: f32,
22    pub speed: f32,
23}