Struct BlockSoundType
pub struct BlockSoundType {
pub volume: f32,
pub pitch: f32,
pub break_sound: Arc<str>,
pub step: Arc<str>,
pub place: Arc<str>,
pub hit: Arc<str>,
pub fall: Arc<str>,
}Expand description
A block state’s sounds (BlockState.getSoundType(), vanilla’s SoundType): the sound
events, as LevelRef::play_sound names them, and the volume and pitch they play at.
Fields§
§volume: f32SoundType.getVolume.
pitch: f32SoundType.getPitch.
break_sound: Arc<str>getBreakSound: the block broken.
step: Arc<str>getStepSound: walked on.
place: Arc<str>getPlaceSound: placed.
hit: Arc<str>getHitSound: hit while being mined.
fall: Arc<str>getFallSound: landed on.
Trait Implementations§
§impl Clone for BlockSoundType
impl Clone for BlockSoundType
§fn clone(&self) -> BlockSoundType
fn clone(&self) -> BlockSoundType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for BlockSoundType
impl Debug for BlockSoundType
§impl PartialEq for BlockSoundType
impl PartialEq for BlockSoundType
impl StructuralPartialEq for BlockSoundType
Auto Trait Implementations§
impl Freeze for BlockSoundType
impl RefUnwindSafe for BlockSoundType
impl Send for BlockSoundType
impl Sync for BlockSoundType
impl Unpin for BlockSoundType
impl UnsafeUnpin for BlockSoundType
impl UnwindSafe for BlockSoundType
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