steel_protocol/packets/game/c_set_default_spawn_position.rs
1//! Clientbound default spawn position packet.
2
3use steel_macros::{ClientPacket, WriteTo};
4use steel_registry::packets::play::C_SET_DEFAULT_SPAWN_POSITION;
5use steel_utils::GlobalPos;
6
7/// Updates the client's default world spawn marker.
8#[derive(ClientPacket, WriteTo, Clone, Debug)]
9#[packet_id(Play = C_SET_DEFAULT_SPAWN_POSITION)]
10pub struct CSetDefaultSpawnPosition {
11 /// Dimension and block position of the default spawn.
12 pub global_pos: GlobalPos,
13 /// Spawn yaw.
14 pub yaw: f32,
15 /// Spawn pitch.
16 pub pitch: f32,
17}