aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/common.rs
blob: 8ad0b753db6b5ccbe21155822eb4056fa249d6cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use azalea_buf::McBuf;
use azalea_core::{
    game_type::{GameMode, OptionalGameType},
    position::GlobalPos,
    resource_location::ResourceLocation,
};

#[derive(Clone, Debug, McBuf)]
pub struct CommonPlayerSpawnInfo {
    pub dimension_type: ResourceLocation,
    pub dimension: ResourceLocation,
    pub seed: i64,
    pub game_type: GameMode,
    pub previous_game_type: OptionalGameType,
    pub is_debug: bool,
    pub is_flat: bool,
    pub last_death_location: Option<GlobalPos>,
    #[var]
    pub portal_cooldown: u32,
}