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

    Interface ICollectionTreeEntryBeta

    interface ICollectionTreeEntry {
        id: string;
        index: number;
        parent: ICollectionTreeFolder;
        selected: boolean;
        addDropdownItem(
            params: ICollectionTreeEntryDropdownItemParams,
        ): ICollectionTreeEntryDropdownItem;
        addNumberItem(
            params: ICollectionTreeEntryNumberItemParams,
        ): ICollectionTreeEntryNumberItem;
        addStringItem(
            params: ICollectionTreeEntryStringItemParams,
        ): ICollectionTreeEntryStringItem;
        getItemByIndex(index: number): ICollectionTreeEntryItem | undefined;
        setColor(color: RGBA | undefined): void;
        setSelected(selected: boolean): void;
    }
    Index

    Properties

    id: string

    Unique identifier for the entry.

    index: number

    Index of the entry in the folder

    Parent folder of the entry.

    selected: boolean

    Selected state of the entry

    Methods

    • Beta

      Parameters

      • index: number

        Index of the entry item

      Returns ICollectionTreeEntryItem | undefined

      Gets the tree entry item by index

    • Beta

      Parameters

      • color: RGBA | undefined

      Returns void

      Set color associated with the entry

    • Beta

      Parameters

      • selected: boolean

        New selected state

      Returns void

      Set selected state of the entry.