Struct RespawnData
pub struct RespawnData {
pub pos: [i32; 3],
pub yaw: f32,
pub pitch: f32,
}Expand description
The world’s respawn data (LevelData.RespawnData): where a player without a spawn point of
their own appears, and facing which way. Horizon keeps it in the Overworld.
Fields§
§pos: [i32; 3]The spawn block.
yaw: f32The yaw in degrees, -180 to 180 (Mth.wrapDegrees).
pitch: f32The pitch in degrees, -90 to 90.
Trait Implementations§
§impl Clone for RespawnData
impl Clone for RespawnData
§fn clone(&self) -> RespawnData
fn clone(&self) -> RespawnData
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 Copy for RespawnData
§impl Debug for RespawnData
impl Debug for RespawnData
§impl PartialEq for RespawnData
impl PartialEq for RespawnData
impl StructuralPartialEq for RespawnData
Auto Trait Implementations§
impl Freeze for RespawnData
impl RefUnwindSafe for RespawnData
impl Send for RespawnData
impl Sync for RespawnData
impl Unpin for RespawnData
impl UnsafeUnpin for RespawnData
impl UnwindSafe for RespawnData
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