Struct BlockChangedEvent
pub struct BlockChangedEvent {
pub dimension: Dimension,
pub pos: BlockPos,
pub old: BlockState,
pub new: BlockState,
}Expand description
What Hooks::block_changed is told. Each field is that hook’s argument of the same name, described in the hook’s doc.
Fields§
§dimension: Dimension§pos: BlockPos§old: BlockState§new: BlockStateTrait Implementations§
Auto Trait Implementations§
impl Freeze for BlockChangedEvent
impl RefUnwindSafe for BlockChangedEvent
impl Send for BlockChangedEvent
impl Sync for BlockChangedEvent
impl Unpin for BlockChangedEvent
impl UnsafeUnpin for BlockChangedEvent
impl UnwindSafe for BlockChangedEvent
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