pub struct Instrument {
pub key: Identifier,
pub sound_event: SoundEventRef,
pub use_duration: f32,
pub range: f32,
pub description: TextComponent,
}Expand description
Represents a musical instrument definition from a data pack JSON file, primarily used for Goat Horns.
Fields§
§key: Identifier§sound_event: SoundEventRef§use_duration: f32§range: f32§description: TextComponentTrait Implementations§
Source§impl Debug for Instrument
impl Debug for Instrument
Source§impl RegistryEntry for Instrument
impl RegistryEntry for Instrument
Source§impl ToNbtTag for &Instrument
impl ToNbtTag for &Instrument
fn to_nbt_tag(self) -> NbtTag
fn to_optional_nbt_tag(self) -> Option<NbtTag>
Auto Trait Implementations§
impl Freeze for Instrument
impl RefUnwindSafe for Instrument
impl Send for Instrument
impl Sync for Instrument
impl Unpin for Instrument
impl UnsafeUnpin for Instrument
impl UnwindSafe for Instrument
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