Struct EntityInvulnerabilityCheckEvent
pub struct EntityInvulnerabilityCheckEvent<'a> {
pub entity: i32,
pub kind: &'a str,
pub source: &'a HurtSource<'a>,
pub original_invulnerability: bool,
pub invulnerable: bool,
}Expand description
What Hooks::entity_invulnerability_check 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>§original_invulnerability: bool§invulnerable: boolAuto Trait Implementations§
impl<'a> Freeze for EntityInvulnerabilityCheckEvent<'a>
impl<'a> RefUnwindSafe for EntityInvulnerabilityCheckEvent<'a>
impl<'a> Send for EntityInvulnerabilityCheckEvent<'a>
impl<'a> Sync for EntityInvulnerabilityCheckEvent<'a>
impl<'a> Unpin for EntityInvulnerabilityCheckEvent<'a>
impl<'a> UnsafeUnpin for EntityInvulnerabilityCheckEvent<'a>
impl<'a> UnwindSafe for EntityInvulnerabilityCheckEvent<'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