pub struct ExplosionEvent {
pub dimension: String,
pub x: f64,
pub y: f64,
pub z: f64,
pub power: f32,
pub cause_uuid: String,
}Expand description
Fired when an explosion occurs in a world.
Pre— fires before block destruction; returnfalseto cancel (blocks and entities are unaffected).Post— fires after the explosion has taken effect.
Fields§
§dimension: String§x: f64§y: f64§z: f64§power: f32§cause_uuid: StringUUID of the entity that caused the explosion, or empty string if none.
Trait Implementations§
Source§impl Clone for ExplosionEvent
impl Clone for ExplosionEvent
Source§fn clone(&self) -> ExplosionEvent
fn clone(&self) -> ExplosionEvent
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 moreAuto Trait Implementations§
impl Freeze for ExplosionEvent
impl RefUnwindSafe for ExplosionEvent
impl Send for ExplosionEvent
impl Sync for ExplosionEvent
impl Unpin for ExplosionEvent
impl UnsafeUnpin for ExplosionEvent
impl UnwindSafe for ExplosionEvent
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