pub struct EntityDeathEvent {
pub entity_type: String,
pub uuid: String,
pub source: String,
}Expand description
Fired after a living entity dies (server side).
Fields§
§entity_type: StringRegistry id of the entity, e.g. minecraft:zombie.
uuid: String§source: StringIdentifier of the killing damage source, e.g. minecraft:player.
Trait Implementations§
Source§impl Clone for EntityDeathEvent
impl Clone for EntityDeathEvent
Source§fn clone(&self) -> EntityDeathEvent
fn clone(&self) -> EntityDeathEvent
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 moreAuto Trait Implementations§
impl Freeze for EntityDeathEvent
impl RefUnwindSafe for EntityDeathEvent
impl Send for EntityDeathEvent
impl Sync for EntityDeathEvent
impl Unpin for EntityDeathEvent
impl UnsafeUnpin for EntityDeathEvent
impl UnwindSafe for EntityDeathEvent
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