public class TextColorUtils
extends java.lang.Object
TextUtils.replaceRGBColors(ATextComponent), but keep in mind that many details will be lost.| Constructor and Description |
|---|
TextColorUtils() |
| Modifier and Type | Method and Description |
|---|---|
static ATextComponent |
gradient(java.lang.String s,
net.lenni0451.mcstructs.core.TextFormatting... colors)
Color a string with a gradient of
TextFormattings. |
static ATextComponent |
rainbow(java.lang.String s)
Color a string with a rainbow gradient.
|
public static ATextComponent gradient(java.lang.String s, net.lenni0451.mcstructs.core.TextFormatting... colors)
TextFormattings.StringComponent is returned.s - The string to colorcolors - The colors to usepublic static ATextComponent rainbow(java.lang.String s)
s - The string to color