chunkedge_protocol/packets/play/
player_command_c2s.rs

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