pub struct EntityLoadRequest {
pub entity_type: EntityTypeRef,
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
Entity load request before the registry assigns a runtime ID.
Fields§
§entity_type: EntityTypeRefEntity type to instantiate.
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.
Implementations§
Source§impl EntityLoadRequest
impl EntityLoadRequest
fn into_base_load(self) -> (EntityTypeRef, EntityBaseLoad)
Auto Trait Implementations§
impl !RefUnwindSafe for EntityLoadRequest
impl !UnwindSafe for EntityLoadRequest
impl Freeze for EntityLoadRequest
impl Send for EntityLoadRequest
impl Sync for EntityLoadRequest
impl Unpin for EntityLoadRequest
impl UnsafeUnpin for EntityLoadRequest
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
§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<>>