getColorRGB

open fun getColorRGB(modId: String, id: String): Color

Gets a single Color without alpha from data/config/modSettings.json. WARNING, while this method should be fairly fast, I would advise against trying to parse a JSON file every frame.

Return

Color from modSettings.json. Default to red in case of failure.

Parameters

modId

section of modSettings to look into.

id

name of the variable to look for