valence_protocol/packets/play/
player_respawn_s2c.rs

1use std::borrow::Cow;
2
3use valence_ident::Ident;
4
5use crate::game_mode::OptGameMode;
6use crate::{Decode, Encode, GameMode, GlobalPos, Packet, VarInt};
7
8#[derive(Clone, PartialEq, Debug, Encode, Decode, Packet)]
9pub struct PlayerRespawnS2c<'a> {
10    pub dimension_type_name: Ident<Cow<'a, str>>,
11    pub dimension_name: Ident<Cow<'a, str>>,
12    pub hashed_seed: u64,
13    pub game_mode: GameMode,
14    pub previous_game_mode: OptGameMode,
15    pub is_debug: bool,
16    pub is_flat: bool,
17    pub copy_metadata: bool,
18    pub last_death_location: Option<GlobalPos<'a>>,
19    pub portal_cooldown: VarInt,
20}