实验性
实验性
Jump实验性
SneakThis 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.
表示映射到控制器、键盘和触摸界面上的“潜行”按钮。默认情况下,这在键盘上是 shift 键,在 Xbox 控制器上是 B 键。在触摸界面上,这个按钮只会按下 1 tick 或更短时间,然后即使玩家按住手指,它也会立即释放。下马或离开船只不会发送潜行按钮更改事件。
All the different input buttons that are supported. Use with @minecraft/server.PlayerInput.getButtonState via @minecraft/server.Player.input or PlayerButtonInputAfterEvent via WorldAfterEvents.playerButtonInput
表示支持的所有不同输入按钮。可通过 @minecraft/server.Player.input 使用 @minecraft/server.PlayerInput.getButtonState,或通过 WorldAfterEvents.playerButtonInput 使用 PlayerButtonInputAfterEvent