@minecraft
    正在准备搜索索引...

    接口 IListPaneSlot

    List Pane slot

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

    属性

    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.

    方法

    • 参数

      • selected: boolean

        New selected state.

      返回 void

      Updates selected state of the slot.

    • 参数

      • data: unknown

        New user data.

      返回 void

      Updates user data associated with the slot