Struct hematite_server::packet::play::clientbound::JoinGame [] [src]

pub struct JoinGame {
    pub entity_id: i32::Clean,
    pub gamemode: u8::Clean,
    pub dimension: Dimension::Clean,
    pub difficulty: u8::Clean,
    pub max_players: u8::Clean,
    pub level_type: String::Clean,
    pub reduced_debug_info: bool::Clean,
}

Fields

entity_id
gamemode
dimension
difficulty
max_players
level_type
reduced_debug_info

Trait Implementations

impl Protocol for JoinGame

type Clean = Self

fn proto_len(value: &JoinGame) -> usize

fn proto_encode(value: &JoinGame, dst: &mut Write) -> Result<()>

fn proto_decode(src: &mut Read) -> Result<JoinGame>

impl PacketWrite for JoinGame

fn inner_len(&self) -> usize

fn inner_encode(&self, dst: &mut Write) -> Result<()>

fn write(&self, dst: &mut Write) -> Result<()>

Derived Implementations

impl Debug for JoinGame

fn fmt(&self, __arg_0: &mut Formatter) -> Result