#[non_exhaustive]pub enum Inbound {
Show 21 variants
KeepAlive(i64),
JoinGame(JoinGame),
Respawn {
dimension: String,
game_mode: GameMode,
},
Teleport(Teleport),
Chat(ChatMessage),
Disconnect(ByteString),
Health(Health),
Abilities(Abilities),
HeldSlot(i8),
GameState {
reason: u8,
value: f32,
},
Transaction {
window_id: i8,
action: i16,
accepted: bool,
},
OpenWindow(i32),
CloseWindow(i32),
SetCompression(i32),
Velocity {
entity_id: i32,
motion: Vec3,
},
ExplosionPush(Vec3),
MovementSpeed {
entity_id: i32,
base: f64,
modifiers: Vec<(Uuid, f64, i8)>,
},
Effect {
entity_id: i32,
id: i8,
amplifier: i8,
},
EffectRemoved {
entity_id: i32,
id: i8,
},
EntityStatus {
entity_id: i32,
status: i8,
},
Died {
entity_id: i32,
},
}Expand description
Clientbound play packets the core understands, common to every version.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
KeepAlive(i64)
Keep-alive to echo.
JoinGame(JoinGame)
Join game (also sent again on a proxy server switch).
Respawn
Respawn / dimension change.
Fields
dimension: StringDimension key (see JoinGame::dimension).
Teleport(Teleport)
Server teleport / position correction.
Chat(ChatMessage)
Chat message.
Disconnect(ByteString)
The server ends the session (chat JSON).
Health(Health)
Health, food and saturation.
Abilities(Abilities)
Abilities.
HeldSlot(i8)
The server selects a hotbar slot.
GameState
Game state change (reason, value), e.g. reason 3 = game mode.
Transaction
Window confirm transaction.
OpenWindow(i32)
A window opened.
CloseWindow(i32)
The open window was closed by the server.
SetCompression(i32)
Compression threshold change in the play state (1.8).
Velocity
Entity velocity (blocks per tick; the wire’s 1/8000 units converted).
ExplosionPush(Vec3)
The player motion an explosion adds.
MovementSpeed
Movement speed attribute of an entity (entity properties packet).
Fields
Effect
A status effect was applied to an entity.
EffectRemoved
A status effect ended.
EntityStatus
Entity status (e.g. 9 = our item use finished).
Died
An entity (the player, if it is our id) died (1.16 combat_event “entity dead”).