Documentation

PlayerAuthInputFlags
in package

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

Tags
see
PlayerAuthInputPacket

Table of Contents

ASCEND  = 0
Pressing the "fly up" key when using touch.
ASCEND_BLOCK  = 21
Ascending scaffolding. Note that this is NOT sent when climbing ladders.
AUTO_JUMPING_IN_WATER  = 7
Auto-swimming upwards while pressing forwards with auto-jump enabled.
CHANGE_HEIGHT  = 5
Pressing (and optionally holding) the fly button ONCE when in flight mode when using touch. This has no obvious use.
DESCEND  = 1
Pressing the "fly down" key when using touch.
DESCEND_BLOCK  = 22
Descending scaffolding.
DOWN  = 11
Pressing the backward key (typically S on keyboard).
JUMP_DOWN  = 3
Pressing (and optionally holding) the jump key (including while flying).
JUMPING  = 6
Pressing (and optionally holding) the jump key (including while flying), and also auto-jumping.
LEFT  = 12
Pressing the left key (typically A on keyboard).
NORTH_JUMP  = 2
Pressing (and optionally holding) the jump key (while not flying).
PERFORM_BLOCK_ACTIONS  = 35
PERFORM_ITEM_INTERACTION  = 34
PERFORM_ITEM_STACK_REQUEST  = 36
PERSIST_SNEAK  = 24
Unclear use. Sent continually on touch controls, irrespective of whether the player is actually sneaking or not.
RIGHT  = 13
Pressing the right key (typically D on keyboard).
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.
SNEAK_TOGGLE_DOWN  = 23
Toggling the sneak button on touch when the button enters the "enabled" state.
SNEAKING  = 8
Sneaking, and pressing the "fly down" key or "sneak" key (including while flying).
SPRINT_DOWN  = 4
Pressing (and optionally holding) the sprint key (typically the CTRL key). Does not include double-pressing the forward key.
SPRINTING  = 20
Unclear usage, during testing it was only seen in conjunction with SPRINT_DOWN. NOT sent while actually sprinting.
START_GLIDING  = 32
START_JUMPING  = 31
Initiating a new jump. Sent every time the client leaves the ground due to jumping, including auto jumps.
START_SNEAKING  = 27
START_SPRINTING  = 25
START_SWIMMING  = 29
STOP_GLIDING  = 33
STOP_SNEAKING  = 28
STOP_SPRINTING  = 26
STOP_SWIMMING  = 30
UP  = 10
Pressing the forward key (typically W on keyboard).
UP_LEFT  = 14
Pressing the ↖ key on touch.
UP_RIGHT  = 15
Pressing the ↗ key on touch.
WANT_DOWN  = 17
Client wants to go downwards. Sent when Descend or Sneak is pressed, irrespective of whether flight is enabled.
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.
WANT_UP  = 16
Client wants to go upwards. Sent when Ascend or Jump is pressed, irrespective of whether flight is enabled.
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.

Constants

ASCEND_BLOCK

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

public mixed ASCEND_BLOCK = 21

AUTO_JUMPING_IN_WATER

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

public mixed AUTO_JUMPING_IN_WATER = 7

CHANGE_HEIGHT

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

public mixed CHANGE_HEIGHT = 5

JUMP_DOWN

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

public mixed JUMP_DOWN = 3

JUMPING

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

public mixed JUMPING = 6

NORTH_JUMP

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

public mixed NORTH_JUMP = 2

PERSIST_SNEAK

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

public mixed PERSIST_SNEAK = 24

SNEAK_DOWN

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

public mixed SNEAK_DOWN = 9

SNEAK_TOGGLE_DOWN

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

public mixed SNEAK_TOGGLE_DOWN = 23

SNEAKING

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

public mixed SNEAKING = 8

SPRINT_DOWN

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

public mixed SPRINT_DOWN = 4

SPRINTING

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

public mixed SPRINTING = 20

START_JUMPING

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

public mixed START_JUMPING = 31

WANT_DOWN

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

public mixed WANT_DOWN = 17

WANT_DOWN_SLOW

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

public mixed WANT_DOWN_SLOW = 18

WANT_UP

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

public mixed WANT_UP = 16

WANT_UP_SLOW

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

public mixed WANT_UP_SLOW = 19

Search results