pub struct ClientboundPlaySyncEntityPosition {
pub entity_id: i32,
pub x: f64,
pub y: f64,
pub z: f64,
pub dx: f64,
pub dy: f64,
pub dz: f64,
pub yaw: f32,
pub pitch: f32,
pub on_ground: bool,
}Fields§
§entity_id: i32§x: f64§y: f64§z: f64§dx: f64§dy: f64§dz: f64§yaw: f32§pitch: f32§on_ground: boolImplementations§
Source§impl ClientboundPlaySyncEntityPosition
impl ClientboundPlaySyncEntityPosition
Sourcepub const PACKET_ID: i32 = 32i32
pub const PACKET_ID: i32 = 32i32
The packet ID used by the registry to dispatch this packet.
This value is declared via #[packet(id = N)] and corresponds to
the VarInt packet ID read/written by the framing layer. The struct’s
own Encode/Decode does NOT include this ID — it only encodes the
packet’s payload fields.
Trait Implementations§
Source§impl Clone for ClientboundPlaySyncEntityPosition
impl Clone for ClientboundPlaySyncEntityPosition
Source§fn clone(&self) -> ClientboundPlaySyncEntityPosition
fn clone(&self) -> ClientboundPlaySyncEntityPosition
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 moreSource§impl Default for ClientboundPlaySyncEntityPosition
impl Default for ClientboundPlaySyncEntityPosition
Source§fn default() -> ClientboundPlaySyncEntityPosition
fn default() -> ClientboundPlaySyncEntityPosition
Returns the “default value” for a type. Read more
Source§impl EncodedSize for ClientboundPlaySyncEntityPosition
impl EncodedSize for ClientboundPlaySyncEntityPosition
fn encoded_size(&self) -> usize
Source§impl PartialEq for ClientboundPlaySyncEntityPosition
impl PartialEq for ClientboundPlaySyncEntityPosition
Source§fn eq(&self, other: &ClientboundPlaySyncEntityPosition) -> bool
fn eq(&self, other: &ClientboundPlaySyncEntityPosition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClientboundPlaySyncEntityPosition
Auto Trait Implementations§
impl Freeze for ClientboundPlaySyncEntityPosition
impl RefUnwindSafe for ClientboundPlaySyncEntityPosition
impl Send for ClientboundPlaySyncEntityPosition
impl Sync for ClientboundPlaySyncEntityPosition
impl Unpin for ClientboundPlaySyncEntityPosition
impl UnsafeUnpin for ClientboundPlaySyncEntityPosition
impl UnwindSafe for ClientboundPlaySyncEntityPosition
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