mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 14:26:04 +00:00
28 lines
598 B
Rust
28 lines
598 B
Rust
use azalea_buf::AzBuf;
|
|
use azalea_core::resource_location::ResourceLocation;
|
|
use azalea_protocol_macros::ClientboundGamePacket;
|
|
|
|
#[derive(Clone, Debug, AzBuf, ClientboundGamePacket)]
|
|
pub struct ClientboundCustomSound {
|
|
pub name: ResourceLocation,
|
|
pub source: SoundSource,
|
|
pub x: i32,
|
|
pub y: i32,
|
|
pub z: i32,
|
|
pub volume: f32,
|
|
pub pitch: f32,
|
|
}
|
|
|
|
#[derive(AzBuf, Clone, Copy, Debug)]
|
|
pub enum SoundSource {
|
|
Master = 0,
|
|
Music = 1,
|
|
Records = 2,
|
|
Weather = 3,
|
|
Blocks = 4,
|
|
Hostile = 5,
|
|
Neutral = 6,
|
|
Players = 7,
|
|
Ambient = 8,
|
|
Voice = 9,
|
|
}
|