Visualization
    Preparing search index...

    Interface ModLayers

    Represents the collection of ModLayers.

    2.4

    interface ModLayers {
        items: ModLayer[];
        add(type: string): ModLayer;
        move(layerId: string, to: number): void;
        move(from: number, to: number): void;
        remove(layerId: string): void;
    }
    Index

    Properties

    Methods

    Properties

    items: ModLayer[]

    The layer items in the mod.

    Methods

    • Add a new layer instance to the mod..

      Parameters

      • type: string

        The type of layer to add, as defined in the manifest.

      Returns ModLayer

    • Move a layer to a new position.

      Parameters

      • layerId: string

        The id of the layer to move.

      • to: number

        The position to move the layer to.

      Returns void

    • Move a layer to a new position.

      Parameters

      • from: number

        The current position of the layer to move.

      • to: number

        The new position to move the layer to.

      Returns void

    • Remove a layer from the mod.

      Parameters

      • layerId: string

        The id of the layer to remove.

      Returns void