pub struct BlockEntityModifiedEvent {
pub position: BlockPosition,
pub kind: BlockEntityKind,
}Expand description
Fires AFTER a block entity’s data is modified.
Non-cancellable. Fires during the Post stage. Triggered by slot writes, tick processing, or explicit replacements.
Fields§
§position: BlockPositionWorld position of the block entity.
kind: BlockEntityKindKind of block entity that was modified.
Trait Implementations§
Source§impl Clone for BlockEntityModifiedEvent
impl Clone for BlockEntityModifiedEvent
Source§fn clone(&self) -> BlockEntityModifiedEvent
fn clone(&self) -> BlockEntityModifiedEvent
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 BlockEntityModifiedEvent
impl Debug for BlockEntityModifiedEvent
Source§impl Event for BlockEntityModifiedEvent
impl Event for BlockEntityModifiedEvent
Source§fn is_cancelled(&self) -> bool
fn is_cancelled(&self) -> bool
Whether this event has been cancelled by a Validate handler.
Source§fn as_any_mut(&mut self) -> &mut dyn Any
fn as_any_mut(&mut self) -> &mut dyn Any
Upcasts to
&mut dyn Any for mutable type-erased dispatch.Auto Trait Implementations§
impl Freeze for BlockEntityModifiedEvent
impl RefUnwindSafe for BlockEntityModifiedEvent
impl Send for BlockEntityModifiedEvent
impl Sync for BlockEntityModifiedEvent
impl Unpin for BlockEntityModifiedEvent
impl UnsafeUnpin for BlockEntityModifiedEvent
impl UnwindSafe for BlockEntityModifiedEvent
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