pub struct PlayerSnapshot {
pub username: String,
pub uuid: Uuid,
pub entity_id: i32,
pub x: f64,
pub y: f64,
pub z: f64,
pub yaw: f32,
pub pitch: f32,
pub skin_properties: Vec<ProfileProperty>,
}Expand description
A snapshot of a player’s state at a point in time.
Used in broadcast messages and events to share a player’s position and identity without holding locks on the player registry.
Fields§
§username: StringThe player’s display name.
uuid: UuidThe player’s UUID.
entity_id: i32The player’s unique entity ID.
x: f64Current X coordinate.
y: f64Current Y coordinate.
z: f64Current Z coordinate.
yaw: f32Current yaw (horizontal look angle, degrees).
pitch: f32Current pitch (vertical look angle, degrees).
skin_properties: Vec<ProfileProperty>Mojang profile properties (skin textures).
Trait Implementations§
Source§impl Clone for PlayerSnapshot
impl Clone for PlayerSnapshot
Source§fn clone(&self) -> PlayerSnapshot
fn clone(&self) -> PlayerSnapshot
Returns a duplicate of the value. Read more
1.0.0 · 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 PlayerSnapshot
impl RefUnwindSafe for PlayerSnapshot
impl Send for PlayerSnapshot
impl Sync for PlayerSnapshot
impl Unpin for PlayerSnapshot
impl UnsafeUnpin for PlayerSnapshot
impl UnwindSafe for PlayerSnapshot
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