pub struct ClientboundPlaySpawnEntity {
pub entity_id: i32,
pub object_uuid: Uuid,
pub type: i32,
pub x: f64,
pub y: f64,
pub z: f64,
pub pitch: i8,
pub yaw: i8,
pub head_pitch: i8,
pub object_data: i32,
pub velocity: Vec3i16,
}Fields§
§entity_id: i32§object_uuid: Uuid§type: i32§x: f64§y: f64§z: f64§pitch: i8§yaw: i8§head_pitch: i8§object_data: i32§velocity: Vec3i16Implementations§
Source§impl ClientboundPlaySpawnEntity
impl ClientboundPlaySpawnEntity
Sourcepub const PACKET_ID: i32 = 1i32
pub const PACKET_ID: i32 = 1i32
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 ClientboundPlaySpawnEntity
impl Clone for ClientboundPlaySpawnEntity
Source§fn clone(&self) -> ClientboundPlaySpawnEntity
fn clone(&self) -> ClientboundPlaySpawnEntity
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 Debug for ClientboundPlaySpawnEntity
impl Debug for ClientboundPlaySpawnEntity
Source§impl Default for ClientboundPlaySpawnEntity
impl Default for ClientboundPlaySpawnEntity
Source§fn default() -> ClientboundPlaySpawnEntity
fn default() -> ClientboundPlaySpawnEntity
Returns the “default value” for a type. Read more
Source§impl Encode for ClientboundPlaySpawnEntity
impl Encode for ClientboundPlaySpawnEntity
Source§impl EncodedSize for ClientboundPlaySpawnEntity
impl EncodedSize for ClientboundPlaySpawnEntity
fn encoded_size(&self) -> usize
impl StructuralPartialEq for ClientboundPlaySpawnEntity
Auto Trait Implementations§
impl Freeze for ClientboundPlaySpawnEntity
impl RefUnwindSafe for ClientboundPlaySpawnEntity
impl Send for ClientboundPlaySpawnEntity
impl Sync for ClientboundPlaySpawnEntity
impl Unpin for ClientboundPlaySpawnEntity
impl UnsafeUnpin for ClientboundPlaySpawnEntity
impl UnwindSafe for ClientboundPlaySpawnEntity
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