Struct LivingShieldBlockEvent
pub struct LivingShieldBlockEvent<'a> {
pub entity: i32,
pub kind: &'a str,
pub source: &'a HurtSource<'a>,
pub damage: f32,
pub original_blocked: bool,
pub block: &'a mut ShieldBlock,
}Expand description
What Hooks::living_shield_block is told. Each field is that hook’s argument of the same name, described in the hook’s doc.
Fields§
§entity: i32§kind: &'a str§source: &'a HurtSource<'a>§damage: f32§original_blocked: bool§block: &'a mut ShieldBlockAuto Trait Implementations§
impl<'a> !UnwindSafe for LivingShieldBlockEvent<'a>
impl<'a> Freeze for LivingShieldBlockEvent<'a>
impl<'a> RefUnwindSafe for LivingShieldBlockEvent<'a>
impl<'a> Send for LivingShieldBlockEvent<'a>
impl<'a> Sync for LivingShieldBlockEvent<'a>
impl<'a> Unpin for LivingShieldBlockEvent<'a>
impl<'a> UnsafeUnpin for LivingShieldBlockEvent<'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