Blockbench Reference Docs
    Preparing search index...
    Index

    Constructors

    • Parameters

      • data: any
      • uuid: any

      Returns Billboard

    Properties

    allow_mirror_modeling?: boolean
    autouv: number
    buttons: OutlinerToggle[]
    color: number
    export: boolean
    faces: { front: BillboardFace }
    icon: string
    locked: boolean
    menu: Menu
    name: string
    offset: number[]
    parent?: OutlinerNode & OutlinerNodeParentTraits | "root"
    position: number[]
    preview_controller: NodePreviewController
    scene_object: Object3D
    selected: boolean
    shade: boolean
    size: (string | number | boolean)[]
    title: string
    type: string
    uuid: string
    visibility: boolean
    all: OutlinerElement[]
    animator?: BoneAnimator
    behavior: {
        cube_faces: boolean;
        movable: boolean;
        resizable: boolean;
        select_faces: boolean;
        unique_name: boolean;
    }
    behavior_overrides: any[] = []
    hasAny: () => boolean

    Check if any elements of the type are in the project

    hasSelected: () => boolean

    Check if any elements of the type are currently selected

    isParent: false
    preview_controller: NodePreviewController
    properties: Record<string, Property<any>>
    selected: OutlinerElement[]
    types: Record<string, typeof OutlinerElement>
    uuids: { [uuid: string]: OutlinerNode }

    Accessors

    • get mesh(): Object3D

      Returns Object3D

    • get origin(): number[]

      Returns number[]

    Methods

    • Parameters

      • Optionaltarget: OutlinerNode | "root"

      Returns this

    • Parameters

      • texture: any

      Returns void

    • Create a unique name for the group or element by adding a number at the end or increasing it.

      Parameters

      • Optionalothers: OutlinerNode[]

      Returns this

    • Parameters

      • object: any

      Returns this

    • Parameters

      • axis: any

      Returns this

    • Returns Object3D

    • Returns {
          autouv: number;
          color: number;
          export: boolean;
          faces: { front: any };
          from: any;
          origin: number[];
          shade: boolean;
          type: string;
          uuid: string;
          visibility: boolean;
      }

    • Parameters

      • flag: string

      Returns any

    • Parameters

      • Optionalaspects: number

      Returns Billboard

    • Returns Vector3

    • Initializes the node. This should always be called when creating nodes that will be used in the outliner.

      Returns this

    • Checks of the group or element is a child of group.

      Parameters

      • node: OutlinerNode
      • max_levels: number

        The maximum number of generations that can be between the element and the group

      Returns boolean

    • Returns void

    • Mark the element as selected

      Parameters

      • Optionaldescendants: boolean

      Returns void

    • Parameters

      • arr: any
      • axis: any
      • Optionalupdate: boolean

      Returns void

    • Removes the element.

      Parameters

      • Optionalundo: boolean

      Returns void

    • Marks the name of the group or element in the outliner for renaming.

      Returns this

    • Parameters

      • val: any
      • axis: any
      • negative: any

      Returns this

    • Saves the changed name of the element by creating an undo point and making the name unique if necessary.

      Parameters

      • Optionalsave: boolean

      Returns this

    • Parameters

      • Optionalevent: any
      • OptionalisOutlinerClick: boolean

      Returns this

    • Parameters

      • index: any

      Returns this

    • Displays the context menu of the element

      Parameters

      • event: Event | HTMLElement

        Mouse event, determines where the context menu spawns.

      Returns this

    • Unfolds the outliner and scrolls up or down if necessary to show the group or element.

      Returns this

    • Parameters

      • Optionaltarget: OutlinerNode
      • Optionalindex_modifier: number

      Returns this

    • Updates the Vue node of the element. This is only necessary in some rare situations

      Returns this

    • Parameters

      • override_options: { behavior: Record<string, any>; condition: any }

      Returns Deletable

    • Parameters

      • data: any
      • Optionalkeep_uuid: boolean

      Returns OutlinerElement

    • Parameters

      • constructor: any
      • id: string

      Returns void