Large improvement to power system, fixes #204
This commit is contained in:
parent
3f47e89f85
commit
cf34fe1f1f
10 changed files with 128 additions and 97 deletions
64
src/main/java/techreborn/lib/ChatColor.java
Normal file
64
src/main/java/techreborn/lib/ChatColor.java
Normal file
|
@ -0,0 +1,64 @@
|
|||
package techreborn.lib;
|
||||
|
||||
|
||||
public enum ChatColor {
|
||||
|
||||
BLACK('0'),
|
||||
|
||||
DARK_BLUE('1'),
|
||||
|
||||
DARK_GREEN('2'),
|
||||
|
||||
DARK_AQUA('3'),
|
||||
|
||||
DARK_RED('4'),
|
||||
|
||||
DARK_PURPLE('5'),
|
||||
|
||||
GOLD('6'),
|
||||
|
||||
GRAY('7'),
|
||||
|
||||
DARK_GRAY('8'),
|
||||
|
||||
BLUE('9'),
|
||||
|
||||
GREEN('a'),
|
||||
|
||||
AQUA('b'),
|
||||
|
||||
RED('c'),
|
||||
|
||||
LIGHT_PURPLE('d'),
|
||||
|
||||
YELLOW('e'),
|
||||
|
||||
WHITE('f'),
|
||||
|
||||
MAGIC('k'),
|
||||
|
||||
BOLD('l'),
|
||||
|
||||
STRIKETHROUGH('m'),
|
||||
|
||||
UNDERLINE('n'),
|
||||
|
||||
ITALIC('o'),
|
||||
|
||||
RESET('r');
|
||||
|
||||
public static final char COLOR_CHAR = '\u00A7';
|
||||
|
||||
private final String toString;
|
||||
|
||||
ChatColor(char code) {
|
||||
this.toString = new String(new char[] {COLOR_CHAR, code});
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return toString;
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue