Skip to main content

ServerParseColor

Callable

  • ServerParseColor(asset: Asset, color: string | readonly string[], schema: readonly string[]): string | string[]

  • 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: string | readonly string[]

      The color value to parse

    • schema: readonly string[]

      The color schema to validate against

    Returns string | string[]

    • A parsed valid item color