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