pub struct PlayerDeathEvent {
pub player_name: String,
pub uuid: String,
pub source: String,
}Expand description
Fired when a player dies.
Pre— fires before death is processed; returnfalseto prevent death (entity survives at 0.5 HP).Post— fires after the player has died.
Fields§
§player_name: String§uuid: String§source: StringDamage source identifier, e.g. "player", "fall".
Trait Implementations§
Source§impl Clone for PlayerDeathEvent
impl Clone for PlayerDeathEvent
Source§fn clone(&self) -> PlayerDeathEvent
fn clone(&self) -> PlayerDeathEvent
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 PlayerDeathEvent
impl RefUnwindSafe for PlayerDeathEvent
impl Send for PlayerDeathEvent
impl Sync for PlayerDeathEvent
impl Unpin for PlayerDeathEvent
impl UnsafeUnpin for PlayerDeathEvent
impl UnwindSafe for PlayerDeathEvent
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