Blockbench Reference Docs
    Preparing search index...

    Collections are "selection presets" for a set of groups and elements in your project, independent from outliner hierarchy

    Index

    Constructors

    Properties

    children: string[]

    List of direct children, referenced by UUIDs

    export_codec: string
    export_path: string
    name: string
    selected: boolean
    uuid: string
    visibility: boolean
    all: Collection[]

    Get all collections

    menu: Menu
    properties: Record<string, Property<any>>
    selected: Collection[]

    Get selected collections

    Methods

    • Returns this

    • Adds the current outliner selection to this collection

      Returns this

    • Parameters

      • event: MouseEvent

      Returns void

    • Check if the node is contained in this collection, directly or indirectly

      Parameters

      • node: OutlinerNode

      Returns boolean

      if the collection contains the node

    • Get all children, including indirect ones

      Returns OutlinerNode[]

    • Get all direct children

      Returns OutlinerNode[]

    • Returns { uuid: string }

    • Returns { index: number; uuid: string }

    • Returns the visibility of the first contained node that supports visibility. Otherwise returns true.

      Returns boolean

    • Opens the properties dialog

      Returns void

    • Parameters

      • Optionalevent: MouseEvent | KeyboardEvent

      Returns this

    • Opens the context menu

      Parameters

      • event: any

      Returns this

    • Toggle visibility of everything in the collection

      Parameters

      • event: MouseEvent | KeyboardEvent

        If the alt key is pressed, the result is inverted and the visibility of everything but the collection will be toggled

      Returns void