pub struct JukeboxSong {
pub key: Identifier,
pub sound_event: SoundEventRef,
pub description: TextComponent,
pub length_in_seconds: f32,
pub comparator_output: i32,
}Expand description
Represents a jukebox song definition from a data pack JSON file.
Fields§
§key: Identifier§sound_event: SoundEventRef§description: TextComponent§length_in_seconds: f32§comparator_output: i32Trait Implementations§
Source§impl Debug for JukeboxSong
impl Debug for JukeboxSong
Source§impl RegistryEntry for JukeboxSong
impl RegistryEntry for JukeboxSong
Source§impl ToNbtTag for &JukeboxSong
impl ToNbtTag for &JukeboxSong
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Auto Trait Implementations§
impl Freeze for JukeboxSong
impl RefUnwindSafe for JukeboxSong
impl Send for JukeboxSong
impl Sync for JukeboxSong
impl Unpin for JukeboxSong
impl UnsafeUnpin 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