aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/clientbound_sound_entity_packet.rs
blob: c74488004fe8799c9e8d9e55e7811ff99e873b0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::clientbound_sound_packet::SoundSource;
use azalea_buf::McBuf;
use azalea_protocol_macros::ClientboundGamePacket;
use azalea_registry::OptionalRegistry;

#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
pub struct ClientboundSoundEntityPacket {
    pub sound: OptionalRegistry<azalea_registry::SoundEvent>,
    pub source: SoundSource,
    #[var]
    pub id: u32,
    pub volume: f32,
    pub pitch: f32,
    pub seed: u64,
}