枚举 InputButton实验性

All the different input buttons that are supported. Use with @minecraft/server.PlayerInput.getButtonState via @minecraft/server.Player.input or PlayerButtonInputAfterEvent via WorldAfterEvents.playerButtonInput

枚举成员

枚举成员

Jump

This is mapped to the 'Jump' button on controllers, keyboards, and touch interfaces.

Sneak

This is mapped to the 'Sneak' button on controllers, keyboards, and touch interfaces. By default, this is shift on a keyboard or B on an Xbox controller. On touch interfaces this will only be pressed for 1 tick or less and then it will be released immediately even if the player holds their finger down. Dismounting a horse or exiting a boat will not send a Sneak button change event.