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