Struct NoteBlockChange
pub struct NoteBlockChange {
pub dimension: Dimension,
pub pos: BlockPos,
pub instrument: NoteInstrument,
pub old_note: i32,
}Expand description
Context for a player tuning a note block.
Fields§
§dimension: DimensionThe level the note block is in.
pos: BlockPosThe note block’s position.
instrument: NoteInstrumentThe block’s instrument before tuning.
old_note: i32The note before tuning, in the range 0 through 24.
Trait Implementations§
§impl Clone for NoteBlockChange
impl Clone for NoteBlockChange
§fn clone(&self) -> NoteBlockChange
fn clone(&self) -> NoteBlockChange
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 moreimpl Copy for NoteBlockChange
§impl Debug for NoteBlockChange
impl Debug for NoteBlockChange
Auto Trait Implementations§
impl Freeze for NoteBlockChange
impl RefUnwindSafe for NoteBlockChange
impl Send for NoteBlockChange
impl Sync for NoteBlockChange
impl Unpin for NoteBlockChange
impl UnsafeUnpin for NoteBlockChange
impl UnwindSafe for NoteBlockChange
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