pub struct ServerEntityMovementSyncUpdate {
pub entity_id: i32,
pub is_passenger: bool,
pub position: DVec3,
pub velocity: DVec3,
pub body_rotation: (f32, f32),
pub head_yaw: f32,
pub on_ground: bool,
pub needs_velocity_sync: bool,
pub has_dirty_entity_data: bool,
pub force_velocity_sync: bool,
}Expand description
Runtime values accepted by vanilla ServerEntity.sendChanges movement sync.
Fields§
§entity_id: i32Entity network id.
is_passenger: boolWhether the entity is currently riding another entity.
position: DVec3Current entity tracking position.
velocity: DVec3Current entity velocity.
body_rotation: (f32, f32)Current body yaw and pitch in degrees.
head_yaw: f32Current head yaw in degrees.
on_ground: boolCurrent on-ground flag.
needs_velocity_sync: boolVanilla Entity.needsSync.
has_dirty_entity_data: boolWhether synced entity data is dirty this tick.
force_velocity_sync: boolVanilla living fall-flying velocity sync exception.
Trait Implementations§
Source§impl Clone for ServerEntityMovementSyncUpdate
impl Clone for ServerEntityMovementSyncUpdate
Source§fn clone(&self) -> ServerEntityMovementSyncUpdate
fn clone(&self) -> ServerEntityMovementSyncUpdate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ServerEntityMovementSyncUpdate
impl StructuralPartialEq for ServerEntityMovementSyncUpdate
Auto Trait Implementations§
impl Freeze for ServerEntityMovementSyncUpdate
impl RefUnwindSafe for ServerEntityMovementSyncUpdate
impl Send for ServerEntityMovementSyncUpdate
impl Sync for ServerEntityMovementSyncUpdate
impl Unpin for ServerEntityMovementSyncUpdate
impl UnsafeUnpin for ServerEntityMovementSyncUpdate
impl UnwindSafe for ServerEntityMovementSyncUpdate
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreWraps this value in an
Arc<SyncMutex<>>