InputInfo
¶
文档版本:1.21.60.21
InputInfo
类。script_api.minecraft/server.inputinfo.description
属性¶
lastInputModeUsed
lastInputModeUsed
:InputMode
- script_api.minecraft/server.inputinfo.lastinputmodeused.description
touchOnlyAffectsHotbar
touchOnlyAffectsHotbar
:boolean
- script_api.minecraft/server.inputinfo.touchonlyaffectshotbar.description
方法¶
getButtonState
script_api.minecraft/server.inputinfo.getbuttonstate.description
button
:InputButton
- script_api.minecraft/server.inputinfo.getbuttonstate.button.description
- 返回值:
ButtonState
- script_api.minecraft/server.inputinfo.getbuttonstate.return
getMovementVector
script_api.minecraft/server.inputinfo.getmovementvector.description
- 返回值:
Vector2
- script_api.minecraft/server.inputinfo.getmovementvector.return