pub struct EntityTeleport { /* private fields */ }Implementations§
Source§impl EntityTeleport
impl EntityTeleport
Sourcepub fn deserialize<R: Read>(r: &mut R) -> Result<ClientboundPacket>
pub fn deserialize<R: Read>(r: &mut R) -> Result<ClientboundPacket>
Deserializes a Read type into a packet. You usually won’t need to use this.
Sourcepub fn to_u8(&self) -> Result<Vec<u8>>
pub fn to_u8(&self) -> Result<Vec<u8>>
Serializes the packet into Vec
pub fn new( entity_id: i32, x: f64, y: f64, z: f64, yaw: i8, pitch: i8, on_ground: bool, ) -> ClientboundPacket
Sourcepub fn get_entity_id(&self) -> &i32
pub fn get_entity_id(&self) -> &i32
Get the entity ID of the entity teleported
Sourcepub fn get_on_ground(&self) -> &bool
pub fn get_on_ground(&self) -> &bool
Get whether the entity is now on the ground
Trait Implementations§
Source§impl Clone for EntityTeleport
impl Clone for EntityTeleport
Source§fn clone(&self) -> EntityTeleport
fn clone(&self) -> EntityTeleport
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 EntityTeleport
impl Debug for EntityTeleport
Source§impl PartialEq for EntityTeleport
impl PartialEq for EntityTeleport
impl StructuralPartialEq for EntityTeleport
Auto Trait Implementations§
impl Freeze for EntityTeleport
impl RefUnwindSafe for EntityTeleport
impl Send for EntityTeleport
impl Sync for EntityTeleport
impl Unpin for EntityTeleport
impl UnsafeUnpin for EntityTeleport
impl UnwindSafe for EntityTeleport
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