pub struct ClientboundPlayEntityTeleport {
pub entity_id: i32,
pub x: f64,
pub y: f64,
pub z: f64,
pub yaw: i8,
pub pitch: i8,
pub on_ground: bool,
}Fields§
§entity_id: i32§x: f64§y: f64§z: f64§yaw: i8§pitch: i8§on_ground: boolImplementations§
Source§impl ClientboundPlayEntityTeleport
impl ClientboundPlayEntityTeleport
Sourcepub const PACKET_ID: i32 = 119i32
pub const PACKET_ID: i32 = 119i32
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 ClientboundPlayEntityTeleport
impl Clone for ClientboundPlayEntityTeleport
Source§fn clone(&self) -> ClientboundPlayEntityTeleport
fn clone(&self) -> ClientboundPlayEntityTeleport
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 ClientboundPlayEntityTeleport
impl Default for ClientboundPlayEntityTeleport
Source§fn default() -> ClientboundPlayEntityTeleport
fn default() -> ClientboundPlayEntityTeleport
Returns the “default value” for a type. Read more
Source§impl EncodedSize for ClientboundPlayEntityTeleport
impl EncodedSize for ClientboundPlayEntityTeleport
fn encoded_size(&self) -> usize
Source§impl PartialEq for ClientboundPlayEntityTeleport
impl PartialEq for ClientboundPlayEntityTeleport
Source§fn eq(&self, other: &ClientboundPlayEntityTeleport) -> bool
fn eq(&self, other: &ClientboundPlayEntityTeleport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClientboundPlayEntityTeleport
Auto Trait Implementations§
impl Freeze for ClientboundPlayEntityTeleport
impl RefUnwindSafe for ClientboundPlayEntityTeleport
impl Send for ClientboundPlayEntityTeleport
impl Sync for ClientboundPlayEntityTeleport
impl Unpin for ClientboundPlayEntityTeleport
impl UnsafeUnpin for ClientboundPlayEntityTeleport
impl UnwindSafe for ClientboundPlayEntityTeleport
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