pub struct AttackEntityEvent {
pub player_name: String,
pub target_type: String,
pub target_uuid: String,
}Expand description
Fired when a player attacks (left-clicks) an entity (server side).
Fields§
§player_name: String§target_type: StringRegistry id of the target, e.g. minecraft:zombie.
target_uuid: StringTarget entity UUID as a string.
Trait Implementations§
Source§impl Clone for AttackEntityEvent
impl Clone for AttackEntityEvent
Source§fn clone(&self) -> AttackEntityEvent
fn clone(&self) -> AttackEntityEvent
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 AttackEntityEvent
impl RefUnwindSafe for AttackEntityEvent
impl Send for AttackEntityEvent
impl Sync for AttackEntityEvent
impl Unpin for AttackEntityEvent
impl UnsafeUnpin for AttackEntityEvent
impl UnwindSafe for AttackEntityEvent
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