#[non_exhaustive]pub enum Outbound {
Show 18 variants
KeepAlive(i64),
TeleportConfirm(i32),
Move(MovePacket),
EntityAction {
entity_id: i32,
action: EntityAction,
},
Chat(String),
Respawn,
Transaction {
window_id: i8,
action: i16,
accepted: bool,
},
Abilities {
flags: i8,
flying_speed: f32,
walking_speed: f32,
},
HeldSlot(i16),
Swing,
Dig {
status: DigStatus,
pos: BlockPos,
face: Face,
},
Place {
pos: BlockPos,
face: Face,
cursor: Vec3,
held: Option<Stack>,
off_hand: bool,
},
UseItem {
held: Option<Stack>,
off_hand: bool,
},
SwingOffHand,
UseEntity {
target: i32,
action: EntityUse,
off_hand: bool,
sneaking: bool,
},
Settings(ClientSettings),
Inventory(Outgoing),
Brand(String),
}Expand description
Serverbound play packets the core writes, common to every version.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
KeepAlive(i64)
Keep-alive answer.
TeleportConfirm(i32)
Teleport confirm (1.9+; never produced for 1.8).
Move(MovePacket)
The movement packet.
EntityAction
Sneak / sprint change.
Chat(String)
Chat line or command (already truncated to the version’s limit).
Respawn
Respawn request (client command “perform respawn”).
Transaction
Window confirm transaction answer.
Abilities
Abilities (sent when the client toggles flight).
Fields
HeldSlot(i16)
Select a hotbar slot (0 … 8).
Swing
Arm swing (main hand).
Dig
block_dig.
Place
block_place on a block face (1.8 with the held stack; 1.16 main hand).
Fields
UseItem
Use the held item (1.8 block_place at −1/−1/−1 face 255 with the held stack; 1.16
use_item).
SwingOffHand
1.9+: off-hand arm swing.
UseEntity
use_entity: attack or interact with an entity.
Fields
Settings(ClientSettings)
Client settings.
Inventory(Outgoing)
A packet of the inventory (window click, confirm answer, close, open inventory).
Brand(String)
The client brand plugin message (MC|Brand on 1.8, minecraft:brand on 1.13+).