azalea_protocol/packets/game/
c_sound_entity.rs

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