Skip to content

@minecraft/server


@minecraft/server / InputInfo

Class: InputInfo ​

Defined in: @minecraft/server/index.d.ts:13361

Contains the input information for a client instance.

Properties ​

lastInputModeUsed ​

readonly lastInputModeUsed: InputMode

Defined in: @minecraft/server/index.d.ts:13373

Remarks ​

The last input mode used by the player.

Throws ​

This property can throw when used.

minecraftcommon.EngineError

InvalidEntityError


touchOnlyAffectsHotbar ​

readonly touchOnlyAffectsHotbar: boolean

Defined in: @minecraft/server/index.d.ts:13383

Remarks ​

Whether the player touch input only affects the touchbar or not.

Throws ​

This property can throw when used.

InvalidEntityError

Methods ​

getButtonState() ​

getButtonState(button): ButtonState

Defined in: @minecraft/server/index.d.ts:13391

Parameters ​

button ​

InputButton

Returns ​

ButtonState

Throws ​

This function can throw errors.

minecraftcommon.EngineError

InvalidEntityError


getMovementVector() ​

getMovementVector(): Vector2

Defined in: @minecraft/server/index.d.ts:13397

Returns ​

Vector2

Throws ​

This function can throw errors.

InvalidEntityError