Blockbench Reference Docs
    Preparing search index...
    Settings: {
        dialog: Dialog | null;
        old: {};
        profile_menu_button: HTMLElement | null;
        stored: Record<string, SettingsValue>;
        structure: Record<
            string,
            { items: Record<string, Setting>; name: string; open: boolean },
        >;
        addCategory(id: string, data: { name?: string; open?: boolean }): void;
        get(id: string): SettingsValue;
        import(file: any): void;
        openDialog(options?: { profile?: string; search_term?: string }): void;
        save(): void;
        saveLocalStorages(): void;
        showRestartMessage(settings?: Setting[]): void;
        updateProfileButton(): void;
        updateSettingsInProfiles(): void;
    }

    Global namespace handling data and functionality related to settings.

    Type Declaration

    • dialog: Dialog | null
    • old: {}
    • profile_menu_button: HTMLElement | null
    • stored: Record<string, SettingsValue>
    • structure: Record<string, { items: Record<string, Setting>; name: string; open: boolean }>
    • addCategory: function
      • Parameters

        • id: string
        • data: { name?: string; open?: boolean }

        Returns void

    • get: function
      • Returns the value of the specified setting

        Parameters

        • id: string

        Returns SettingsValue

    • import: function
      • Parameters

        • file: any

        Returns void

    • openDialog: function
      • Parameters

        • Optionaloptions: { profile?: string; search_term?: string }

        Returns void

    • save: function
      • Save the settings and apply changes

        Returns void

    • saveLocalStorages: function
      • Save all settings to the local storage

        Returns void

    • showRestartMessage: function
      • Parameters

        Returns void

    • updateProfileButton: function
      • Returns void

    • updateSettingsInProfiles: function
      • Returns void