Struct PlayerRespawnConfig
pub struct PlayerRespawnConfig {
pub position: GlobalPos,
pub yaw: f32,
pub forced: bool,
}Expand description
A player’s respawn point (ServerPlayer.RespawnConfig): the block they come back at, the
way they face there and whether it is forced (/spawnpoint) rather than a bed or anchor that
must still be there.
Fields§
§position: GlobalPosThe dimension and block.
yaw: f32The yaw in degrees (Mth.wrapDegrees, -180 to 180 when read).
forced: boolWhether the point holds without its block (/spawnpoint).
Trait Implementations§
§impl Clone for PlayerRespawnConfig
impl Clone for PlayerRespawnConfig
§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 more§impl Debug for PlayerRespawnConfig
impl Debug for PlayerRespawnConfig
§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