Skip to main content

ServerParseColor

Callable


  • Parses an item color, based on the allowed colorable layers on an asset, and the asset's color schema


    Parameters

    • asset: Asset

      The asset on which the color is set

    • color: BCColor | readonly BCColor[]

      The color value to parse

    • schema: readonly BCColor[]

      The color schema to validate against

    Returns BCColor | BCColor[]

    • A parsed valid item color