pub struct JukeboxSong {
pub sound_event: IdOr<SoundEventDefinition>,
pub description: Text,
pub length_seconds: f32,
pub comparator_output: VarInt,
}Expand description
Defines a Music Disc song.
Fields§
§sound_event: IdOr<SoundEventDefinition>The sound event to play.
description: TextThe song title shown in the “Now Playing” action bar.
length_seconds: f32The duration of the song in seconds.
comparator_output: VarIntThe Redstone signal strength (0-15) emitted by the Jukebox while playing.
Trait Implementations§
Source§impl Clone for JukeboxSong
impl Clone for JukeboxSong
Source§fn clone(&self) -> JukeboxSong
fn clone(&self) -> JukeboxSong
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JukeboxSong
impl Debug for JukeboxSong
Source§impl<'a> Decode<'a> for JukeboxSong
impl<'a> Decode<'a> for JukeboxSong
Source§impl Encode for JukeboxSong
impl Encode for JukeboxSong
Source§impl PartialEq for JukeboxSong
impl PartialEq for JukeboxSong
impl StructuralPartialEq for JukeboxSong
Auto Trait Implementations§
impl Freeze for JukeboxSong
impl RefUnwindSafe for JukeboxSong
impl Send for JukeboxSong
impl Sync for JukeboxSong
impl Unpin for JukeboxSong
impl UnwindSafe for JukeboxSong
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