pub(crate) struct EntitySpawnRequest<'a> {
pub entity_type: EntityTypeRef,
pub placement: EntitySpawnPlacement,
pub reason: EntitySpawnReason,
pub finalize_spawn: bool,
pub play_ambient_sound: bool,
pub item_stack: Option<&'a ItemStack>,
pub user_is_operator: bool,
}Expand description
Request for a complete, world-inserting entity spawn.
Fields§
§entity_type: EntityTypeRef§placement: EntitySpawnPlacement§reason: EntitySpawnReason§finalize_spawn: bool§play_ambient_sound: bool§item_stack: Option<&'a ItemStack>§user_is_operator: boolTrait Implementations§
Source§impl<'a> Clone for EntitySpawnRequest<'a>
impl<'a> Clone for EntitySpawnRequest<'a>
Source§fn clone(&self) -> EntitySpawnRequest<'a>
fn clone(&self) -> EntitySpawnRequest<'a>
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<'a> Copy for EntitySpawnRequest<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for EntitySpawnRequest<'a>
impl<'a> !UnwindSafe for EntitySpawnRequest<'a>
impl<'a> Freeze for EntitySpawnRequest<'a>
impl<'a> Send for EntitySpawnRequest<'a>
impl<'a> Sync for EntitySpawnRequest<'a>
impl<'a> Unpin for EntitySpawnRequest<'a>
impl<'a> UnsafeUnpin for EntitySpawnRequest<'a>
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<>>