@minecraft/server-editor
    Preparing search index...

    Interface IListPaneSlotBeta

    List Pane slot

    interface IListPaneSlot {
        entryCount: number;
        id: string;
        paneId: string;
        selected: boolean;
        tags: readonly string[];
        title: LocalizedString;
        getEntry<K extends undefined | ListPaneEntryType = undefined>(
            index: number,
            type?: K,
        ):
            | undefined
            | (K extends ListPaneEntryType ? ListPaneEntryMap[K<K>] : IListPaneEntry);
        getUserData(): unknown;
        setSelected(selected: boolean): void;
        setTags(tags: undefined | string[]): void;
        setTitle(title: LocalizedString): void;
        setUserData(data: unknown): void;
    }
    Index

    Properties

    entryCount: number

    Count of entries.

    id: string

    Unique identifier of the slot.

    paneId: string

    Unique identifier of the parent pane.

    selected: boolean

    Selected state of the slot.

    tags: readonly string[]

    List of tags associated with the slot.

    Count of entries.

    Methods

    • Beta

      Returns unknown

      User data associated with the slot.

    • Beta

      Parameters

      • selected: boolean

        New selected state.

      Returns void

      Updates selected state of the slot.

    • Beta

      Parameters

      • tags: undefined | string[]

        New tag list.

      Returns void

      Updates tags of the slot.

    • Beta

      Parameters

      Returns void

      Updates title of the slot.

    • Beta

      Parameters

      • data: unknown

        New user data.

      Returns void

      Updates user data associated with the slot