pub struct EntityMoveDelta {
pub on_ground: bool,
pub path: MovePath,
}Expand description
on_ground and the position change of a relative entity move (protocol 777+).
Fields§
§on_ground: boolWhether the entity is on the ground.
path: MovePathThe position change.
Implementations§
Trait Implementations§
Source§impl Clone for EntityMoveDelta
impl Clone for EntityMoveDelta
Source§impl Debug for EntityMoveDelta
impl Debug for EntityMoveDelta
Source§impl Decode for EntityMoveDelta
impl Decode for EntityMoveDelta
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 Default for EntityMoveDelta
impl Default for EntityMoveDelta
Source§impl Encode for EntityMoveDelta
impl Encode for EntityMoveDelta
Source§fn encode(&self, w: &mut BytesMut) -> EncodeResult
fn encode(&self, w: &mut BytesMut) -> EncodeResult
Appends the encoding of
self to w.impl Eq for EntityMoveDelta
Source§impl Generate for EntityMoveDelta
Available on crate feature testgen only.
impl Generate for EntityMoveDelta
Available on crate feature
testgen only.Source§impl Hash for EntityMoveDelta
impl Hash for EntityMoveDelta
Source§impl PartialEq for EntityMoveDelta
impl PartialEq for EntityMoveDelta
impl StructuralPartialEq for EntityMoveDelta
Auto Trait Implementations§
impl Forget for EntityMoveDelta
impl Freeze for EntityMoveDelta
impl Move for EntityMoveDelta
impl RefUnwindSafe for EntityMoveDelta
impl Send for EntityMoveDelta
impl Sync for EntityMoveDelta
impl Unpin for EntityMoveDelta
impl UnsafeUnpin for EntityMoveDelta
impl UnwindSafe for EntityMoveDelta
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