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

    Interface ITagContainerPropertyItemBeta

    A property item which supports Tag Container properties

    interface ITagContainerPropertyItem {
        enable: boolean;
        id: string;
        paneId: string;
        tags: readonly string[];
        tagsPool: readonly string[];
        typeName: PropertyItemType;
        visible: boolean;
        addTag(tag: string): void;
        addTagToPool(tag: string): void;
        removeTag(tag: string): void;
        removeTagFromPool(tag: string): void;
        setTags(tags: string[] | undefined): void;
        setTagsPool(tagsPool: string[] | undefined): void;
        setTitle(title: LocalizedString): void;
        setVariant(variant: TagContainerVariant | undefined): void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    enable: boolean

    If the item is enabled in the UI.

    id: string

    Unique ID for the property item.

    paneId: string

    The parent pane id.

    tags: readonly string[]

    Current tags value of the property item.

    tagsPool: readonly string[]

    Current tags pool value of the property item.

    The type name of the target property.

    visible: boolean

    If the item should be visible in the UI.

    Methods

    • Beta

      Parameters

      • tag: string

        Tag to add.

      Returns void

      Adds a tag to the current tags.

    • Beta

      Parameters

      • tag: string

        Tag to add to the pool.

      Returns void

      Adds a tag to the tags pool.

    • Beta

      Parameters

      • tag: string

        Tag to remove.

      Returns void

      Removes a tag from the current tags.

    • Beta

      Parameters

      • tag: string

        Tag to remove from the pool.

      Returns void

      Removes a tag from the tags pool.

    • Beta

      Parameters

      • tags: string[] | undefined

        New tags array.

      Returns void

      Updates all tags.

    • Beta

      Parameters

      • tagsPool: string[] | undefined

        New tags pool array.

      Returns void

      Updates the tags pool.

    • Beta

      Parameters

      Returns void

      Set title of the property item.

    • Beta

      Parameters

      Returns void

      Sets the visual variant of the tag container.