pub struct EntityBaseLoad {
pub id: i32,
pub position: DVec3,
pub uuid: Uuid,
pub velocity: DVec3,
pub rotation: (f32, f32),
pub fall_distance: f64,
pub fire_freeze: EntityFireFreezeState,
pub on_ground: bool,
pub save_data: EntityBaseSaveData,
pub world: Weak<World>,
}Expand description
Base fields restored from persistent entity data.
Vanilla loads these fields through Entity.load before type-specific
entity data. Keeping them bundled makes the load boundary explicit and
prevents constructor signatures from drifting as base state grows.
Fields§
§id: i32Fresh runtime ID from next_entity_id().
position: DVec3Restored entity position.
uuid: UuidPersisted entity UUID.
velocity: DVec3Restored velocity.
rotation: (f32, f32)Restored yaw and pitch.
fall_distance: f64Restored accumulated fall distance.
fire_freeze: EntityFireFreezeStateRestored vanilla fire/freeze state.
on_ground: boolRestored ground-contact flag.
save_data: EntityBaseSaveDataRestored shared vanilla save data.
world: Weak<World>World reference for the loaded entity.
Trait Implementations§
Source§impl Clone for EntityBaseLoad
impl Clone for EntityBaseLoad
Source§fn clone(&self) -> EntityBaseLoad
fn clone(&self) -> EntityBaseLoad
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for EntityBaseLoad
impl !UnwindSafe for EntityBaseLoad
impl Freeze for EntityBaseLoad
impl Send for EntityBaseLoad
impl Sync for EntityBaseLoad
impl Unpin for EntityBaseLoad
impl UnsafeUnpin for EntityBaseLoad
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<>>