Struct LivingDamagePreEvent
pub struct LivingDamagePreEvent<'a> {
pub entity: i32,
pub kind: &'a str,
pub source: &'a HurtSource<'a>,
pub container: &'a mut DamageContainer,
}Expand description
What Hooks::living_damage_pre 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>§container: &'a mut DamageContainerAuto Trait Implementations§
impl<'a> !UnwindSafe for LivingDamagePreEvent<'a>
impl<'a> Freeze for LivingDamagePreEvent<'a>
impl<'a> RefUnwindSafe for LivingDamagePreEvent<'a>
impl<'a> Send for LivingDamagePreEvent<'a>
impl<'a> Sync for LivingDamagePreEvent<'a>
impl<'a> Unpin for LivingDamagePreEvent<'a>
impl<'a> UnsafeUnpin for LivingDamagePreEvent<'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