mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 06:16:04 +00:00
18 lines
504 B
Rust
18 lines
504 B
Rust
use azalea_buf::AzBuf;
|
|
use azalea_core::sound::CustomSound;
|
|
use azalea_protocol_macros::ClientboundGamePacket;
|
|
use azalea_registry::SoundEvent;
|
|
use azalea_world::MinecraftEntityId;
|
|
|
|
use super::c_sound::SoundSource;
|
|
|
|
#[derive(Clone, Debug, AzBuf, ClientboundGamePacket)]
|
|
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,
|
|
}
|