Blockbench Reference Docs
    Preparing search index...

    Abstract parent class for texture layers and layer groups. In the future can be expanded for things like text or fx layers

    Hierarchy (View Summary)

    Index

    Accessors

    • get selected(): boolean

      Returns boolean

    Constructors

    Methods

    • Add the layer to the associated texture above the previously selected layer, select this layer, and scroll the layer panel list to it

      Returns this

    • Parameters

      • event: MouseEvent

      Returns void

    • Returns number

    • Remove the layer

      Parameters

      • Optionalundo: boolean

        Create an undo point and update the texture

      Returns void

    • Scroll the layer panel list to

      Returns this

    • Selects the layer

      Parameters

      • Optionalmulti_select: boolean

      Returns void

    • Parameters

      • event: MouseEvent

      Returns void

    • Toggle layer groupvisibility. This creates an undo point

      Returns this

    • Parameters

      • id: string
      • constructor: any

      Returns void

    Properties

    folded: boolean
    menu?: Menu
    multi_selected: boolean
    name: string
    parent_uuid: string
    texture: Texture
    type: string
    uuid: string
    visible: boolean
    properties: Record<string, Property<any>>
    types: Record<string, any>