I've seen this elsewhere and I really don't understand the point. These exact constants exist in the Minecraft code as net.minecraft.util.EnumChatFormatting, which is both more robust (has utility functions like getTextWithoutFormattingCodes) and more future proof (even though it's probably unlikely to break in this instance, it's still always better to use Minecraft's implementations wherever possible).Just a StringHelper I find very useful. Just remember to call te color first, then the style before the string. Good for adding information to items and making the item name fancy. There's a lot you can add to this, I just made this for basic funcionality.Code:public class StringHelper { /** When formatting a string, always apply color before font modification. */ public static final String BLACK = (char) 167 + "0"; ... }
Encouraging new modders to use anything other than EnumChatFormatting is dubious at best.