跳转至

InputService

文档版本:1.21.60.21

InputService类。script_api.minecraft/server-editor-bindings.inputservice.description

方法

focusViewport

script_api.minecraft/server-editor-bindings.inputservice.focusviewport.description

focusViewport(): void
registerKeyBinding

script_api.minecraft/server-editor-bindings.inputservice.registerkeybinding.description

registerKeyBinding(contextId: string, bindingId: string, key: int32, modifier: InputModifier, info: InputBindingInfo): void
unregisterKeyBinding

script_api.minecraft/server-editor-bindings.inputservice.unregisterkeybinding.description

unregisterKeyBinding(controlId: string, bindingId: string): void