aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/common.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-protocol/src/packets/common.rs')
-rw-r--r--azalea-protocol/src/packets/common.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/azalea-protocol/src/packets/common.rs b/azalea-protocol/src/packets/common.rs
new file mode 100644
index 00000000..0fa7cb1f
--- /dev/null
+++ b/azalea-protocol/src/packets/common.rs
@@ -0,0 +1,16 @@
+use azalea_buf::McBuf;
+use azalea_core::{GameMode, GlobalPos, OptionalGameType, 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,
+}