util
Client utility wrappers.
color
String coloredMessage = util.color(String message);
Replaces all color shortcuts with the color symbol.
colorSymbol
String colorSymbol = util.colorSymbol;
Minecraft unicode character for color codes. Can be used for rendering minecraft coloring in render.text.
randomDouble
int random = util.randomDouble(double min, double max);
Generates a random double between a specified range.
randomInt
int random = util.randomInt(int min, int max);
Generates a random integer between a specified range.
round
double round = util.round(double value, int decimals);
Rounds a double value to x significant figures.
strip
String chatMessage = util.strip(String message);
Strips all color codes from a string.
Last updated