@minecraft
    Preparing search index...

    Interface IModalTool

    interface IModalTool {
        id: string;
        isActive: boolean;
        onModalToolActivation: EventSink<ModalToolLifecycleEventPayload>;
        bindPropertyPane(pane: IRootPropertyPane): void;
        registerKeyBinding(
            action: SupportedKeyboardActionTypes,
            binding: KeyBinding,
            info?: KeyBindingInfo,
        ): IRegisteredKeyBinding;
        registerMouseButtonBinding(action: SupportedMouseActionTypes): void;
        registerMouseDragBinding(action: SupportedMouseActionTypes): void;
        registerMouseWheelBinding(action: SupportedMouseActionTypes): void;
        unregisterInputBindings(): void;
    }
    Index

    Properties

    id: string

    Unique identifier for the tool

    isActive: boolean

    Active state of the modal tool

    Provides lifecycle activation events for a modal tool

    Methods