Contains the input information for a client instance.
Readonly
The last input mode used by the player.
This property can throw when used.
minecraftcommon.EngineError
InvalidEntityError
Whether the player touch input only affects the touchbar or not.
Retrieves the current state of a button. If a player presses and releases a button really fast this may not ever be set to true. To capture all button state changes, use PlayerButtonInputAfterEvent via WorldAfterEvents.playerButtonInput
This function can throw errors.
Contains the input information for a client instance.