pub struct BlockEntityCreatedEvent {
pub position: BlockPosition,
pub kind: BlockEntityKind,
}Expand description
Fires AFTER a block entity is created at a position that had none.
Non-cancellable. Fires during the Post stage.
Fields§
§position: BlockPositionWorld position of the new block entity.
kind: BlockEntityKindKind of block entity that was created.
Trait Implementations§
Source§impl Clone for BlockEntityCreatedEvent
impl Clone for BlockEntityCreatedEvent
Source§fn clone(&self) -> BlockEntityCreatedEvent
fn clone(&self) -> BlockEntityCreatedEvent
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 BlockEntityCreatedEvent
impl Debug for BlockEntityCreatedEvent
Source§impl Event for BlockEntityCreatedEvent
impl Event for BlockEntityCreatedEvent
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 BlockEntityCreatedEvent
impl RefUnwindSafe for BlockEntityCreatedEvent
impl Send for BlockEntityCreatedEvent
impl Sync for BlockEntityCreatedEvent
impl Unpin for BlockEntityCreatedEvent
impl UnsafeUnpin for BlockEntityCreatedEvent
impl UnwindSafe for BlockEntityCreatedEvent
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