Hi everyone, I’ve got a tiny issue at hand. I’m trying to change the color of a text label through Java. Now I know you can change the color of a text label in XML but I want to change the color of the label while some sort of function is called.
[java]
textlabel.getRenderer(TextRenderer.class).setColor(Color.WHITE);
[/java]
Above as an example of how to change the color, but it only supports 2 different colors which is black or white as well as a random color. How do you change the color to red or any other color than black and white using the code above? Or is there a better way to change the color?
Any help or tips will be appreciated.