azalea_protocol/packets/game/
c_sound_entity.rs

1use azalea_buf::AzBuf;
2use azalea_protocol_macros::ClientboundGamePacket;
3use azalea_registry::SoundEvent;
4use azalea_world::MinecraftEntityId;
5
6use super::c_sound::{CustomSound, SoundSource};
7
8#[derive(Clone, Debug, AzBuf, ClientboundGamePacket)]
9pub struct ClientboundSoundEntity {
10    pub sound: azalea_registry::Holder<SoundEvent, CustomSound>,
11    pub source: SoundSource,
12    #[var]
13    pub id: MinecraftEntityId,
14    pub volume: f32,
15    pub pitch: f32,
16    pub seed: u64,
17}