InputService
¶
文档版本:1.21.60.21
InputService
类。script_api.minecraft/server-editor-bindings.inputservice.description
方法¶
focusViewport
script_api.minecraft/server-editor-bindings.inputservice.focusviewport.description
- 返回值:
void
- script_api.minecraft/server-editor-bindings.inputservice.focusviewport.return
registerKeyBinding
script_api.minecraft/server-editor-bindings.inputservice.registerkeybinding.description
registerKeyBinding(contextId: string, bindingId: string, key: int32, modifier: InputModifier, info: InputBindingInfo): void
contextId
:string
- script_api.minecraft/server-editor-bindings.inputservice.registerkeybinding.contextid.description
bindingId
:string
- script_api.minecraft/server-editor-bindings.inputservice.registerkeybinding.bindingid.description
key
:int32
- script_api.minecraft/server-editor-bindings.inputservice.registerkeybinding.key.description
modifier
:InputModifier
- script_api.minecraft/server-editor-bindings.inputservice.registerkeybinding.modifier.description
info
:InputBindingInfo
- script_api.minecraft/server-editor-bindings.inputservice.registerkeybinding.info.description
- 返回值:
void
- script_api.minecraft/server-editor-bindings.inputservice.registerkeybinding.return
unregisterKeyBinding
script_api.minecraft/server-editor-bindings.inputservice.unregisterkeybinding.description
controlId
:string
- script_api.minecraft/server-editor-bindings.inputservice.unregisterkeybinding.controlid.description
bindingId
:string
- script_api.minecraft/server-editor-bindings.inputservice.unregisterkeybinding.bindingid.description
- 返回值:
void
- script_api.minecraft/server-editor-bindings.inputservice.unregisterkeybinding.return