Preparing search index...
The search index is not available
Script API - v1.21.0
Script API - v1.21.0
@minecraft/server-editor@0.1.0-beta
IModalTool
Interface IModalTool
Beta
interface
IModalTool
{
id
:
string
;
onModalToolActivation
:
EventSink
<
ModalToolLifecycleEventPayload
>
;
bindPropertyPane
(
pane
:
IPropertyPane
)
:
void
;
dispose
()
:
void
;
hide
()
:
void
;
registerKeyBinding
(
action
:
SupportedKeyboardActionTypes
,
button
:
KeyboardKey
,
modifier
?:
InputModifier
,
)
:
void
;
registerMouseButtonBinding
(
action
:
SupportedMouseActionTypes
)
:
void
;
registerMouseDragBinding
(
action
:
SupportedMouseActionTypes
)
:
void
;
registerMouseWheelBinding
(
action
:
SupportedMouseActionTypes
)
:
void
;
show
()
:
void
;
unregisterInputBindings
()
:
void
;
}
Index
Properties
id
on
Modal
Tool
Activation
Methods
bind
Property
Pane
dispose
hide
register
Key
Binding
register
Mouse
Button
Binding
register
Mouse
Drag
Binding
register
Mouse
Wheel
Binding
show
unregister
Input
Bindings
Properties
Readonly
Beta
id
id
:
string
Remarks
Unique ID for the tool
Beta
on
Modal
Tool
Activation
onModalToolActivation
:
EventSink
<
ModalToolLifecycleEventPayload
>
Remarks
Provides lifecycle activation events for a modal tool
Methods
bind
Property
Pane
bindPropertyPane
(
pane
:
IPropertyPane
)
:
void
Beta
Parameters
pane
:
IPropertyPane
Returns
void
dispose
dispose
()
:
void
Beta
Returns
void
hide
hide
()
:
void
Beta
Returns
void
register
Key
Binding
registerKeyBinding
(
action
:
SupportedKeyboardActionTypes
,
button
:
KeyboardKey
,
modifier
?:
InputModifier
,
)
:
void
Beta
Parameters
action
:
SupportedKeyboardActionTypes
button
:
KeyboardKey
Optional
modifier
:
InputModifier
Returns
void
register
Mouse
Button
Binding
registerMouseButtonBinding
(
action
:
SupportedMouseActionTypes
)
:
void
Beta
Parameters
action
:
SupportedMouseActionTypes
Returns
void
register
Mouse
Drag
Binding
registerMouseDragBinding
(
action
:
SupportedMouseActionTypes
)
:
void
Beta
Parameters
action
:
SupportedMouseActionTypes
Returns
void
register
Mouse
Wheel
Binding
registerMouseWheelBinding
(
action
:
SupportedMouseActionTypes
)
:
void
Beta
Parameters
action
:
SupportedMouseActionTypes
Returns
void
show
show
()
:
void
Beta
Returns
void
unregister
Input
Bindings
unregisterInputBindings
()
:
void
Beta
Returns
void
Settings
Member Visibility
External
Inherited
Private
Protected
Deprecated
Theme
OS
Light
Dark
On This Page
Properties
id
on
Modal
Tool
Activation
Methods
bind
Property
Pane
dispose
hide
register
Key
Binding
register
Mouse
Button
Binding
register
Mouse
Drag
Binding
register
Mouse
Wheel
Binding
show
unregister
Input
Bindings
Script API - v1.21.0
Loading...
Remarks
Unique ID for the tool