Blockbench Reference Docs
    Preparing search index...

    Interface BlockbenchEventMap

    interface BlockbenchEventMap {
        add_animation_controller: { state: AnimationController };
        add_animation_controller_animation: { state: AnimationControllerState };
        add_animation_controller_particle: { state: AnimationControllerState };
        add_animation_controller_sound: { state: AnimationControllerState };
        add_animation_controller_transition: { state: AnimationControllerState };
        add_armature: any;
        add_armature_bone: any;
        add_bounding_box: any;
        add_cube: any;
        add_group: any;
        add_mesh: any;
        add_texture: { texture: Texture };
        add_texture_mesh: any;
        added_to_selection: any;
        before_closing: any;
        cancel_selection_change: { selection_before: UndoSelectionSave };
        canvas_click: any;
        canvas_select: any;
        change_active_panel: any;
        change_color: any;
        change_texture_path: { texture: Texture };
        close_project: any;
        compile_bedrock_animation_controller: {
            json: any;
            state: AnimationController;
        };
        compile_bedrock_animation_controller_state: {
            json: any;
            state: AnimationControllerState;
        };
        compile_bedrock_animations: any;
        compile_texture_mcmeta: { mcmeta: any };
        construct_format: { format: ModelFormat };
        construct_model_loader: any;
        convert_format: { format: ModelFormat; old_format: ModelFormat };
        create_session: any;
        create_undo_save: { aspects: UndoAspects; save: UndoSave };
        delete_format: { format: ModelFormat };
        delete_model_loader: any;
        display_animation_frame: { in_loop: true };
        display_default_pose: { reduced_updates: boolean };
        display_model_stats: any;
        drop_text: { text: string };
        edit_animation_controller_properties: { state: AnimationController };
        edit_animation_properties: { animation: _Animation };
        edit_collection_properties: any;
        edit_layer_properties: { layer: TextureLayer };
        finish_edit: { aspects: UndoAspects; message: string };
        finish_selection_change: { aspects: UndoAspects };
        finished_edit: { aspects: UndoAspects; message: string } | { remote: true };
        finished_selection_change: { aspects: UndoAspects };
        flip_node_name: any;
        generate_texture_template: any;
        get_face_texture: { element: OutlinerElement; face: Face };
        group_elements: any;
        init_edit: { amended: boolean; aspects: UndoAspects; save: UndoSave };
        init_selection_change: { aspects: UndoAspects; save: UndoSelectionSave };
        installed_plugin: { plugin: Plugin };
        interpolate_keyframes: {
            animator: BoneAnimator;
            keyframe_after: _Keyframe;
            keyframe_before: _Keyframe;
            t: number;
            time: number;
            use_quaternions: boolean;
        };
        invert_selection: any;
        join_session: any;
        load_animation: any;
        load_animation_controller: any;
        load_editor_state: any;
        load_from_recent_project_data: any;
        load_project: { model: any; path: string };
        load_undo_save: { mode: "session"; reference: UndoSave; save: UndoSave };
        loaded_plugin: { plugin: Plugin };
        merge_project: any;
        new_project: any;
        open_bar_menu: { menu: BarMenu };
        paste_text: { text: string };
        press_key: {
            capture: () => void;
            event: KeyboardEvent;
            input_in_focus?: HTMLElement;
        };
        process_chat_message: any;
        quick_save_model: any;
        quit_session: any;
        receive_session_data: any;
        redo: { entry: UndoEntry };
        register_element_type: any;
        remove_animation: { animations: _Animation[] };
        render_frame: any;
        reset_layout: any;
        reset_project: any;
        resize_window: { event?: Event };
        save_editor_state: any;
        save_model_action: any;
        save_project: { model: any; options?: any };
        saved_state_changed: any;
        select_all: any;
        select_animation: { animation: _Animation };
        select_animation_controller_state: { state: AnimationControllerState };
        select_format: { format: ModelFormat; project: ModelProject };
        select_mode: { mode: Mode };
        select_no_project: any;
        select_preview_scene: any;
        select_project: { project: ModelProject };
        select_texture: { event: Event; texture: Texture };
        send_session_data: any;
        setup_project: any;
        timeline_pause: any;
        timeline_play: any;
        undo: { entry: UndoEntry };
        uninstalled_plugin: { plugin: Plugin };
        unloaded_plugin: { plugin: Plugin };
        unselect_all: any;
        unselect_interface: any;
        unselect_mode: { mode: Mode };
        unselect_preview_scene: any;
        unselect_project: { project: ModelProject };
        update_camera_position: { preview: Preview };
        update_keyframe_selection: any;
        update_pressed_modifier_keys: {
            before: { alt: boolean; ctrl: boolean; shift: boolean };
            event: KeyboardEvent;
            now: { alt: boolean; ctrl: boolean; shift: boolean };
        };
        update_project_resolution: any;
        update_project_settings: Record<string, any>;
        update_recent_project_data: any;
        update_recent_project_thumbnail: any;
        update_scene_shading: any;
        update_selection: any;
        update_settings: any;
        update_texture_selection: any;
        update_view: UpdateViewOptions;
        user_joins_session: any;
        user_leaves_session: any;
    }
    Index

    Properties

    add_animation_controller add_animation_controller_animation add_animation_controller_particle add_animation_controller_sound add_animation_controller_transition add_armature add_armature_bone add_bounding_box add_cube add_group add_mesh add_texture add_texture_mesh added_to_selection before_closing cancel_selection_change canvas_click canvas_select change_active_panel change_color change_texture_path close_project compile_bedrock_animation_controller compile_bedrock_animation_controller_state compile_bedrock_animations compile_texture_mcmeta construct_format construct_model_loader convert_format create_session create_undo_save delete_format delete_model_loader display_animation_frame display_default_pose display_model_stats drop_text edit_animation_controller_properties edit_animation_properties edit_collection_properties edit_layer_properties finish_edit finish_selection_change finished_edit finished_selection_change flip_node_name generate_texture_template get_face_texture group_elements init_edit init_selection_change installed_plugin interpolate_keyframes invert_selection join_session load_animation load_animation_controller load_editor_state load_from_recent_project_data load_project load_undo_save loaded_plugin merge_project new_project open_bar_menu paste_text press_key process_chat_message quick_save_model quit_session receive_session_data redo register_element_type remove_animation render_frame reset_layout reset_project resize_window save_editor_state save_model_action save_project saved_state_changed select_all select_animation select_animation_controller_state select_format select_mode select_no_project select_preview_scene select_project select_texture send_session_data setup_project timeline_pause timeline_play undo uninstalled_plugin unloaded_plugin unselect_all unselect_interface unselect_mode unselect_preview_scene unselect_project update_camera_position update_keyframe_selection update_pressed_modifier_keys update_project_resolution update_project_settings update_recent_project_data update_recent_project_thumbnail update_scene_shading update_selection update_settings update_texture_selection update_view user_joins_session user_leaves_session

    Properties

    add_animation_controller: { state: AnimationController }
    add_animation_controller_animation: { state: AnimationControllerState }
    add_animation_controller_particle: { state: AnimationControllerState }
    add_animation_controller_sound: { state: AnimationControllerState }
    add_animation_controller_transition: { state: AnimationControllerState }
    add_armature: any
    add_armature_bone: any
    add_bounding_box: any
    add_cube: any
    add_group: any
    add_mesh: any
    add_texture: { texture: Texture }
    add_texture_mesh: any
    added_to_selection: any
    before_closing: any
    cancel_selection_change: { selection_before: UndoSelectionSave }
    canvas_click: any
    canvas_select: any
    change_active_panel: any
    change_color: any
    change_texture_path: { texture: Texture }
    close_project: any
    compile_bedrock_animation_controller: { json: any; state: AnimationController }
    compile_bedrock_animation_controller_state: {
        json: any;
        state: AnimationControllerState;
    }
    compile_bedrock_animations: any
    compile_texture_mcmeta: { mcmeta: any }
    construct_format: { format: ModelFormat }
    construct_model_loader: any
    convert_format: { format: ModelFormat; old_format: ModelFormat }
    create_session: any
    create_undo_save: { aspects: UndoAspects; save: UndoSave }
    delete_format: { format: ModelFormat }
    delete_model_loader: any
    display_animation_frame: { in_loop: true }
    display_default_pose: { reduced_updates: boolean }
    display_model_stats: any
    drop_text: { text: string }
    edit_animation_controller_properties: { state: AnimationController }
    edit_animation_properties: { animation: _Animation }
    edit_collection_properties: any
    edit_layer_properties: { layer: TextureLayer }
    finish_edit: { aspects: UndoAspects; message: string }
    finish_selection_change: { aspects: UndoAspects }
    finished_edit: { aspects: UndoAspects; message: string } | { remote: true }
    finished_selection_change: { aspects: UndoAspects }
    flip_node_name: any
    generate_texture_template: any
    get_face_texture: { element: OutlinerElement; face: Face }
    group_elements: any
    init_edit: { amended: boolean; aspects: UndoAspects; save: UndoSave }
    init_selection_change: { aspects: UndoAspects; save: UndoSelectionSave }
    installed_plugin: { plugin: Plugin }
    interpolate_keyframes: {
        animator: BoneAnimator;
        keyframe_after: _Keyframe;
        keyframe_before: _Keyframe;
        t: number;
        time: number;
        use_quaternions: boolean;
    }
    invert_selection: any
    join_session: any
    load_animation: any
    load_animation_controller: any
    load_editor_state: any
    load_from_recent_project_data: any
    load_project: { model: any; path: string }
    load_undo_save: { mode: "session"; reference: UndoSave; save: UndoSave }
    loaded_plugin: { plugin: Plugin }
    merge_project: any
    new_project: any
    open_bar_menu: { menu: BarMenu }
    paste_text: { text: string }
    press_key: {
        capture: () => void;
        event: KeyboardEvent;
        input_in_focus?: HTMLElement;
    }
    process_chat_message: any
    quick_save_model: any
    quit_session: any
    receive_session_data: any
    redo: { entry: UndoEntry }
    register_element_type: any
    remove_animation: { animations: _Animation[] }
    render_frame: any
    reset_layout: any
    reset_project: any
    resize_window: { event?: Event }
    save_editor_state: any
    save_model_action: any
    save_project: { model: any; options?: any }
    saved_state_changed: any
    select_all: any
    select_animation: { animation: _Animation }
    select_animation_controller_state: { state: AnimationControllerState }
    select_format: { format: ModelFormat; project: ModelProject }
    select_mode: { mode: Mode }
    select_no_project: any
    select_preview_scene: any
    select_project: { project: ModelProject }
    select_texture: { event: Event; texture: Texture }
    send_session_data: any
    setup_project: any
    timeline_pause: any
    timeline_play: any
    undo: { entry: UndoEntry }
    uninstalled_plugin: { plugin: Plugin }
    unloaded_plugin: { plugin: Plugin }
    unselect_all: any
    unselect_interface: any
    unselect_mode: { mode: Mode }
    unselect_preview_scene: any
    unselect_project: { project: ModelProject }
    update_camera_position: { preview: Preview }
    update_keyframe_selection: any
    update_pressed_modifier_keys: {
        before: { alt: boolean; ctrl: boolean; shift: boolean };
        event: KeyboardEvent;
        now: { alt: boolean; ctrl: boolean; shift: boolean };
    }
    update_project_resolution: any
    update_project_settings: Record<string, any>
    update_recent_project_data: any
    update_recent_project_thumbnail: any
    update_scene_shading: any
    update_selection: any
    update_settings: any
    update_texture_selection: any
    update_view: UpdateViewOptions
    user_joins_session: any
    user_leaves_session: any