pub struct RelEntityMove {
pub entity_id: i32,
pub d_x: i8,
pub d_y: i8,
pub d_z: i8,
pub on_ground: bool,
}Expand description
rel_entity_move (clientbound play, id 0x15).
Fields§
§entity_id: i32entityId
d_x: i8dX
d_y: i8dY
d_z: i8dZ
on_ground: boolonGround
Trait Implementations§
Source§impl Clone for RelEntityMove
impl Clone for RelEntityMove
Source§impl Debug for RelEntityMove
impl Debug for RelEntityMove
Source§impl Decode for RelEntityMove
impl Decode for RelEntityMove
Source§fn decode(r: &mut Reader<'_>) -> DecodeResult<Self>
fn decode(r: &mut Reader<'_>) -> DecodeResult<Self>
Decodes one value, advancing the reader past it.
Source§impl Encode for RelEntityMove
impl Encode for RelEntityMove
Source§fn encode(&self, w: &mut BytesMut) -> EncodeResult
fn encode(&self, w: &mut BytesMut) -> EncodeResult
Appends the encoding of
self to w.Source§impl From<RelEntityMove> for ClientboundPlayPacket
impl From<RelEntityMove> for ClientboundPlayPacket
Source§fn from(p: RelEntityMove) -> Self
fn from(p: RelEntityMove) -> Self
Converts to this type from the input type.
Source§impl Generate for RelEntityMove
Available on crate feature testgen only.
impl Generate for RelEntityMove
Available on crate feature
testgen only.Source§impl Packet for RelEntityMove
impl Packet for RelEntityMove
Source§impl PartialEq for RelEntityMove
impl PartialEq for RelEntityMove
impl StructuralPartialEq for RelEntityMove
Auto Trait Implementations§
impl Freeze for RelEntityMove
impl RefUnwindSafe for RelEntityMove
impl Send for RelEntityMove
impl Sync for RelEntityMove
impl Unpin for RelEntityMove
impl UnsafeUnpin for RelEntityMove
impl UnwindSafe for RelEntityMove
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