pub struct PlayerMoveEvent {
pub player_name: String,
pub player_uuid: String,
pub x: f64,
pub y: f64,
pub z: f64,
pub yaw: f32,
pub pitch: f32,
}Expand description
Fired every time a player sends a movement packet (very high frequency).
Post-phase only. The fields reflect the new position the client claims.
Fields§
§player_name: String§player_uuid: String§x: f64§y: f64§z: f64§yaw: f32§pitch: f32Trait Implementations§
Source§impl Clone for PlayerMoveEvent
impl Clone for PlayerMoveEvent
Source§fn clone(&self) -> PlayerMoveEvent
fn clone(&self) -> PlayerMoveEvent
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 PlayerMoveEvent
impl RefUnwindSafe for PlayerMoveEvent
impl Send for PlayerMoveEvent
impl Sync for PlayerMoveEvent
impl Unpin for PlayerMoveEvent
impl UnsafeUnpin for PlayerMoveEvent
impl UnwindSafe for PlayerMoveEvent
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