pub struct SoundType {
pub volume: f32,
pub pitch: f32,
pub break_sound: SoundEventRef,
pub step_sound: SoundEventRef,
pub place_sound: SoundEventRef,
pub hit_sound: SoundEventRef,
pub fall_sound: SoundEventRef,
}Expand description
Defines the sounds for a block type.
Fields§
§volume: f32Volume multiplier for sounds (1.0 = normal).
pitch: f32Pitch multiplier for sounds (1.0 = normal).
break_sound: SoundEventRefSound event for breaking the block.
step_sound: SoundEventRefSound event for stepping on the block.
place_sound: SoundEventRefSound event for placing the block.
hit_sound: SoundEventRefSound event for hitting the block.
fall_sound: SoundEventRefSound event for falling on the block.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SoundType
impl RefUnwindSafe for SoundType
impl Send for SoundType
impl Sync for SoundType
impl Unpin for SoundType
impl UnsafeUnpin for SoundType
impl UnwindSafe for SoundType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more