pub struct PlayerPosition { /* private fields */ }Implementations§
Source§impl PlayerPosition
impl PlayerPosition
Sourcepub fn deserialize<R: Read>(r: &mut R) -> Result<ServerboundPacket>
pub fn deserialize<R: Read>(r: &mut R) -> Result<ServerboundPacket>
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(x: f64, y: f64, z: f64, on_ground: bool) -> ServerboundPacket
Sourcepub fn get_on_ground(&self) -> &bool
pub fn get_on_ground(&self) -> &bool
Get whether on the ground
Trait Implementations§
Source§impl Clone for PlayerPosition
impl Clone for PlayerPosition
Source§fn clone(&self) -> PlayerPosition
fn clone(&self) -> PlayerPosition
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 PlayerPosition
impl Debug for PlayerPosition
Source§impl PartialEq for PlayerPosition
impl PartialEq for PlayerPosition
impl StructuralPartialEq for PlayerPosition
Auto Trait Implementations§
impl Freeze for PlayerPosition
impl RefUnwindSafe for PlayerPosition
impl Send for PlayerPosition
impl Sync for PlayerPosition
impl Unpin for PlayerPosition
impl UnsafeUnpin for PlayerPosition
impl UnwindSafe for PlayerPosition
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