Struct OnBlockExplodedEvent
pub struct OnBlockExplodedEvent<'a> {
pub pos: BlockPos,
pub state: BlockState,
pub block_entity: Option<BlockEntityRef>,
pub explosion: &'a ExplosionStart<'a>,
}Expand description
What BlockPart::on_block_exploded is told. Each field is that hook’s argument of the same name, described in the hook’s doc.
Fields§
§pos: BlockPos§state: BlockState§block_entity: Option<BlockEntityRef>§explosion: &'a ExplosionStart<'a>Auto Trait Implementations§
impl<'a> Freeze for OnBlockExplodedEvent<'a>
impl<'a> RefUnwindSafe for OnBlockExplodedEvent<'a>
impl<'a> Send for OnBlockExplodedEvent<'a>
impl<'a> Sync for OnBlockExplodedEvent<'a>
impl<'a> Unpin for OnBlockExplodedEvent<'a>
impl<'a> UnsafeUnpin for OnBlockExplodedEvent<'a>
impl<'a> UnwindSafe for OnBlockExplodedEvent<'a>
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