#[non_exhaustive]pub struct JoinGame {
pub entity_id: i32,
pub game_mode: GameMode,
pub dimension: String,
pub hardcore: bool,
pub dimension_nbt: Option<(RawNbt, RawNbt)>,
pub respawn_screen: bool,
}Expand description
Static information from the join game packet.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.entity_id: i32The player’s entity id.
game_mode: GameModeGame mode.
dimension: StringDimension: the 1.8 id (−1 nether, 0 overworld, 1 end) as a string, or the 1.16 world
name (e.g. minecraft:overworld).
hardcore: boolHardcore world.
dimension_nbt: Option<(RawNbt, RawNbt)>1.16: the dimension codec and dimension type NBT, kept raw (not parsed).
respawn_screen: bool1.16: the respawn screen is shown (false = immediate respawn gamerule).
Trait Implementations§
impl StructuralPartialEq for JoinGame
Auto Trait Implementations§
impl !Freeze for JoinGame
impl RefUnwindSafe for JoinGame
impl Send for JoinGame
impl Sync for JoinGame
impl Unpin for JoinGame
impl UnsafeUnpin for JoinGame
impl UnwindSafe for JoinGame
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