Struct BiomeMusic
pub struct BiomeMusic {
pub sound: String,
pub min_delay: u32,
pub max_delay: u32,
}Expand description
The default background music of a biome (default of minecraft:audio/background_music).
Fields§
§sound: StringThe sound event (minecraft:music.overworld.meadow).
min_delay: u32Fewest ticks between two tracks.
max_delay: u32Most ticks between two tracks, independently nonnegative.
Trait Implementations§
§impl Clone for BiomeMusic
impl Clone for BiomeMusic
§fn clone(&self) -> BiomeMusic
fn clone(&self) -> BiomeMusic
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 BiomeMusic
impl Debug for BiomeMusic
§impl PartialEq for BiomeMusic
impl PartialEq for BiomeMusic
impl StructuralPartialEq for BiomeMusic
Auto Trait Implementations§
impl Freeze for BiomeMusic
impl RefUnwindSafe for BiomeMusic
impl Send for BiomeMusic
impl Sync for BiomeMusic
impl Unpin for BiomeMusic
impl UnsafeUnpin for BiomeMusic
impl UnwindSafe for BiomeMusic
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