getNamedColor

fun CommandContext<CommandSourceStack>.getNamedColor(name: String): NamedTextColor

Retrieves a NamedTextColor from the command context.