pub struct PlayerRespawnConfig {
pub respawn_data: RespawnData,
pub forced: bool,
}Expand description
Vanilla per-player respawn configuration.
Fields§
§respawn_data: RespawnDataDimension, bed/anchor position, yaw, and pitch used for respawn.
forced: boolWhether respawning is forced even if the spawn block is unavailable.
Implementations§
Source§impl PlayerRespawnConfig
impl PlayerRespawnConfig
pub(crate) const fn new(respawn_data: RespawnData, forced: bool) -> Self
pub(crate) fn is_same_position(&self, other: Option<&Self>) -> bool
Trait Implementations§
Source§impl Clone for PlayerRespawnConfig
impl Clone for PlayerRespawnConfig
Source§fn clone(&self) -> PlayerRespawnConfig
fn clone(&self) -> PlayerRespawnConfig
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 moreSource§impl Debug for PlayerRespawnConfig
impl Debug for PlayerRespawnConfig
Source§impl PartialEq for PlayerRespawnConfig
impl PartialEq for PlayerRespawnConfig
impl StructuralPartialEq for PlayerRespawnConfig
Auto Trait Implementations§
impl Freeze for PlayerRespawnConfig
impl RefUnwindSafe for PlayerRespawnConfig
impl Send for PlayerRespawnConfig
impl Sync for PlayerRespawnConfig
impl Unpin for PlayerRespawnConfig
impl UnsafeUnpin for PlayerRespawnConfig
impl UnwindSafe for PlayerRespawnConfig
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<>>