valence_protocol/packets/play/
client_command_c2s.rs

1use crate::{Decode, Encode, Packet, VarInt};
2
3#[derive(Copy, Clone, Debug, Encode, Decode, Packet)]
4pub struct ClientCommandC2s {
5    pub entity_id: VarInt,
6    pub action: ClientCommand,
7    pub jump_boost: VarInt,
8}
9
10#[derive(Copy, Clone, PartialEq, Eq, Debug, Encode, Decode)]
11pub enum ClientCommand {
12    StartSneaking,
13    StopSneaking,
14    LeaveBed,
15    StartSprinting,
16    StopSprinting,
17    StartJumpWithHorse,
18    StopJumpWithHorse,
19    OpenHorseInventory,
20    StartFlyingWithElytra,
21}