PocketMine-MP 5.18.1 git-9381fc4172e5dce4cada1cb356050c8a2ab57b94
pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags Class Reference
+ Collaboration diagram for pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags:

Public Attributes

const ACK_ACTOR_DATA = 44
 
const ASCEND = 0
 
const ASCEND_BLOCK = 21
 
const AUTO_JUMPING_IN_WATER = 7
 
const CHANGE_HEIGHT = 5
 
const DESCEND = 1
 
const DESCEND_BLOCK = 22
 
const DOWN = 11
 
const EMOTING = 38
 
const HANDLED_TELEPORT = 37
 
const IN_CLIENT_PREDICTED_VEHICLE = 45
 
const JUMP_DOWN = 3
 
const JUMPING = 6
 
const LEFT = 12
 
const MISSED_SWING = 39
 
const NORTH_JUMP = 2
 
const PADDLING_LEFT = 46
 
const PADDLING_RIGHT = 47
 
const PERFORM_BLOCK_ACTIONS = 35
 
const PERFORM_ITEM_INTERACTION = 34
 
const PERFORM_ITEM_STACK_REQUEST = 36
 
const PERSIST_SNEAK = 24
 
const RIGHT = 13
 
const SNEAK_DOWN = 9
 
const SNEAK_TOGGLE_DOWN = 23
 
const SNEAKING = 8
 
const SPRINT_DOWN = 4
 
const SPRINTING = 20
 
const START_CRAWLING = 40
 
const START_FLYING = 42
 
const START_GLIDING = 32
 
const START_JUMPING = 31
 
const START_SNEAKING = 27
 
const START_SPRINTING = 25
 
const START_SWIMMING = 29
 
const STOP_CRAWLING = 41
 
const STOP_FLYING = 43
 
const STOP_GLIDING = 33
 
const STOP_SNEAKING = 28
 
const STOP_SPRINTING = 26
 
const STOP_SWIMMING = 30
 
const UP = 10
 
const UP_LEFT = 14
 
const UP_RIGHT = 15
 
const WANT_DOWN = 17
 
const WANT_DOWN_SLOW = 18
 
const WANT_UP = 16
 
const WANT_UP_SLOW = 19
 

Detailed Description

These flags are used in PlayerAuthInputPacket's inputFlags field. The flags should be written as flags |= (1 << flag) and read as (flags & (1 << flag)) !== 0

See also
PlayerAuthInputPacket

Definition at line 28 of file PlayerAuthInputFlags.php.

Member Data Documentation

◆ ACK_ACTOR_DATA

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::ACK_ACTOR_DATA = 44

Definition at line 100 of file PlayerAuthInputFlags.php.

◆ ASCEND

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::ASCEND = 0

Pressing the "fly up" key when using touch.

Definition at line 30 of file PlayerAuthInputFlags.php.

◆ ASCEND_BLOCK

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::ASCEND_BLOCK = 21

Ascending scaffolding. Note that this is NOT sent when climbing ladders.

Definition at line 72 of file PlayerAuthInputFlags.php.

◆ AUTO_JUMPING_IN_WATER

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::AUTO_JUMPING_IN_WATER = 7

Auto-swimming upwards while pressing forwards with auto-jump enabled.

Definition at line 44 of file PlayerAuthInputFlags.php.

◆ CHANGE_HEIGHT

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::CHANGE_HEIGHT = 5

Pressing (and optionally holding) the fly button ONCE when in flight mode when using touch. This has no obvious use.

Definition at line 40 of file PlayerAuthInputFlags.php.

◆ DESCEND

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::DESCEND = 1

Pressing the "fly down" key when using touch.

Definition at line 32 of file PlayerAuthInputFlags.php.

◆ DESCEND_BLOCK

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::DESCEND_BLOCK = 22

Descending scaffolding.

Definition at line 74 of file PlayerAuthInputFlags.php.

◆ DOWN

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::DOWN = 11

Pressing the backward key (typically S on keyboard).

Definition at line 52 of file PlayerAuthInputFlags.php.

◆ EMOTING

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::EMOTING = 38

Definition at line 93 of file PlayerAuthInputFlags.php.

◆ HANDLED_TELEPORT

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::HANDLED_TELEPORT = 37

Definition at line 92 of file PlayerAuthInputFlags.php.

◆ IN_CLIENT_PREDICTED_VEHICLE

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::IN_CLIENT_PREDICTED_VEHICLE = 45

Definition at line 101 of file PlayerAuthInputFlags.php.

◆ JUMP_DOWN

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::JUMP_DOWN = 3

Pressing (and optionally holding) the jump key (including while flying).

Definition at line 36 of file PlayerAuthInputFlags.php.

◆ JUMPING

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::JUMPING = 6

Pressing (and optionally holding) the jump key (including while flying), and also auto-jumping.

Definition at line 42 of file PlayerAuthInputFlags.php.

◆ LEFT

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::LEFT = 12

Pressing the left key (typically A on keyboard).

Definition at line 54 of file PlayerAuthInputFlags.php.

◆ MISSED_SWING

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::MISSED_SWING = 39

Left-clicking the air. In vanilla, this generates an ATTACK_NODAMAGE sound and does nothing else.

Definition at line 95 of file PlayerAuthInputFlags.php.

◆ NORTH_JUMP

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::NORTH_JUMP = 2

Pressing (and optionally holding) the jump key (while not flying).

Definition at line 34 of file PlayerAuthInputFlags.php.

◆ PADDLING_LEFT

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::PADDLING_LEFT = 46

Definition at line 102 of file PlayerAuthInputFlags.php.

◆ PADDLING_RIGHT

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::PADDLING_RIGHT = 47

Definition at line 103 of file PlayerAuthInputFlags.php.

◆ PERFORM_BLOCK_ACTIONS

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::PERFORM_BLOCK_ACTIONS = 35

Definition at line 90 of file PlayerAuthInputFlags.php.

◆ PERFORM_ITEM_INTERACTION

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::PERFORM_ITEM_INTERACTION = 34

Definition at line 89 of file PlayerAuthInputFlags.php.

◆ PERFORM_ITEM_STACK_REQUEST

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::PERFORM_ITEM_STACK_REQUEST = 36

Definition at line 91 of file PlayerAuthInputFlags.php.

◆ PERSIST_SNEAK

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::PERSIST_SNEAK = 24

Unclear use. Sent continually on touch controls, irrespective of whether the player is actually sneaking or not.

Definition at line 78 of file PlayerAuthInputFlags.php.

◆ RIGHT

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::RIGHT = 13

Pressing the right key (typically D on keyboard).

Definition at line 56 of file PlayerAuthInputFlags.php.

◆ SNEAK_DOWN

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::SNEAK_DOWN = 9

Pressing (and optionally holding) the sneak key (including while flying). This includes when the sneak button is toggled ON with touch controls.

Definition at line 48 of file PlayerAuthInputFlags.php.

◆ SNEAK_TOGGLE_DOWN

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::SNEAK_TOGGLE_DOWN = 23

Toggling the sneak button on touch when the button enters the "enabled" state.

Definition at line 76 of file PlayerAuthInputFlags.php.

◆ SNEAKING

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::SNEAKING = 8

Sneaking, and pressing the "fly down" key or "sneak" key (including while flying).

Definition at line 46 of file PlayerAuthInputFlags.php.

◆ SPRINT_DOWN

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::SPRINT_DOWN = 4

Pressing (and optionally holding) the sprint key (typically the CTRL key). Does not include double-pressing the forward key.

Definition at line 38 of file PlayerAuthInputFlags.php.

◆ SPRINTING

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::SPRINTING = 20

Unclear usage, during testing it was only seen in conjunction with SPRINT_DOWN. NOT sent while actually sprinting.

Definition at line 70 of file PlayerAuthInputFlags.php.

◆ START_CRAWLING

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::START_CRAWLING = 40

Definition at line 96 of file PlayerAuthInputFlags.php.

◆ START_FLYING

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::START_FLYING = 42

Definition at line 98 of file PlayerAuthInputFlags.php.

◆ START_GLIDING

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::START_GLIDING = 32

Definition at line 87 of file PlayerAuthInputFlags.php.

◆ START_JUMPING

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::START_JUMPING = 31

Initiating a new jump. Sent every time the client leaves the ground due to jumping, including auto jumps.

Definition at line 86 of file PlayerAuthInputFlags.php.

◆ START_SNEAKING

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::START_SNEAKING = 27

Definition at line 81 of file PlayerAuthInputFlags.php.

◆ START_SPRINTING

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::START_SPRINTING = 25

Definition at line 79 of file PlayerAuthInputFlags.php.

◆ START_SWIMMING

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::START_SWIMMING = 29

Definition at line 83 of file PlayerAuthInputFlags.php.

◆ STOP_CRAWLING

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::STOP_CRAWLING = 41

Definition at line 97 of file PlayerAuthInputFlags.php.

◆ STOP_FLYING

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::STOP_FLYING = 43

Definition at line 99 of file PlayerAuthInputFlags.php.

◆ STOP_GLIDING

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::STOP_GLIDING = 33

Definition at line 88 of file PlayerAuthInputFlags.php.

◆ STOP_SNEAKING

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::STOP_SNEAKING = 28

Definition at line 82 of file PlayerAuthInputFlags.php.

◆ STOP_SPRINTING

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::STOP_SPRINTING = 26

Definition at line 80 of file PlayerAuthInputFlags.php.

◆ STOP_SWIMMING

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::STOP_SWIMMING = 30

Definition at line 84 of file PlayerAuthInputFlags.php.

◆ UP

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::UP = 10

Pressing the forward key (typically W on keyboard).

Definition at line 50 of file PlayerAuthInputFlags.php.

◆ UP_LEFT

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::UP_LEFT = 14

Pressing the ↖ key on touch.

Definition at line 58 of file PlayerAuthInputFlags.php.

◆ UP_RIGHT

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::UP_RIGHT = 15

Pressing the ↗ key on touch.

Definition at line 60 of file PlayerAuthInputFlags.php.

◆ WANT_DOWN

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::WANT_DOWN = 17

Client wants to go downwards. Sent when Descend or Sneak is pressed, irrespective of whether flight is enabled.

Definition at line 64 of file PlayerAuthInputFlags.php.

◆ WANT_DOWN_SLOW

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::WANT_DOWN_SLOW = 18

Same as "want up" but slow. Only usable with controllers at the time of writing. Triggered by pressing the right joystick by default.

Definition at line 66 of file PlayerAuthInputFlags.php.

◆ WANT_UP

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::WANT_UP = 16

Client wants to go upwards. Sent when Ascend or Jump is pressed, irrespective of whether flight is enabled.

Definition at line 62 of file PlayerAuthInputFlags.php.

◆ WANT_UP_SLOW

const pocketmine\network\mcpe\protocol\types\PlayerAuthInputFlags::WANT_UP_SLOW = 19

Same as "want down" but slow. Only usable with controllers at the time of writing. Not bound to any control by default.

Definition at line 68 of file PlayerAuthInputFlags.php.


The documentation for this class was generated from the following file: