pub struct ServerEntityMovementSyncUpdate {Show 14 fields
pub entity_type: EntityTypeRef,
pub vertical_collision: bool,
pub horizontal_collision: bool,
pub requires_precise_position: bool,
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_type: EntityTypeRefentity type for the itemonly collision precision rule
vertical_collision: boolwhether the latest movement collided vertically
horizontal_collision: boolwhether the latest movement collided horizontally
requires_precise_position: boolWhether the entity requested a full-precision position sync.
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: boolWhether this entity’s velocity changed enough to need syncing this tick.
has_dirty_entity_data: boolWhether synced entity data is dirty this tick.
force_velocity_sync: boolVanilla living fall-flying velocity sync exception.
Implementations§
Source§impl ServerEntityMovementSyncUpdate
impl ServerEntityMovementSyncUpdate
fn is_full_precision_encoding_required( &self, (dx, _, dz): (PackedEntityDelta, PackedEntityDelta, PackedEntityDelta), ) -> bool
Trait Implementations§
impl 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<>>