pub struct OnEntityDamaged;Expand description
Called when an entity is damaged. This is not called when an entities health is set directly by another mod.
Implementations§
Trait Implementations§
Source§impl Clone for OnEntityDamaged
impl Clone for OnEntityDamaged
Source§fn clone(&self) -> OnEntityDamaged
fn clone(&self) -> OnEntityDamaged
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OnEntityDamaged
Source§impl Debug for OnEntityDamaged
impl Debug for OnEntityDamaged
impl Eq for OnEntityDamaged
Source§impl PartialEq for OnEntityDamaged
impl PartialEq for OnEntityDamaged
impl StructuralPartialEq for OnEntityDamaged
Auto Trait Implementations§
impl Freeze for OnEntityDamaged
impl RefUnwindSafe for OnEntityDamaged
impl Send for OnEntityDamaged
impl Sync for OnEntityDamaged
impl Unpin for OnEntityDamaged
impl UnsafeUnpin for OnEntityDamaged
impl UnwindSafe for OnEntityDamaged
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