JavaScript is disabled on your browser.
Enum Constant Summary
Enum Constants
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
Changes Minecraft color codes to HTML span elements with correct color class assignments.
Returns the enum constant of this class with the specified name.
Returns an array containing the constants of this enum class, in
the order they are declared.
Methods inherited from class java.lang.Enum
clone , compareTo , describeConstable , equals , finalize , getDeclaringClass , hashCode , name , ordinal , toString , valueOf
Enum Constant Details
COLOR_0
public static final Html COLOR_0
COLOR_1
public static final Html COLOR_1
COLOR_2
public static final Html COLOR_2
COLOR_3
public static final Html COLOR_3
COLOR_4
public static final Html COLOR_4
COLOR_5
public static final Html COLOR_5
COLOR_6
public static final Html COLOR_6
COLOR_7
public static final Html COLOR_7
COLOR_8
public static final Html COLOR_8
COLOR_9
public static final Html COLOR_9
COLOR_A
public static final Html COLOR_A
COLOR_B
public static final Html COLOR_B
COLOR_C
public static final Html COLOR_C
COLOR_D
public static final Html COLOR_D
COLOR_E
public static final Html COLOR_E
COLOR_F
public static final Html COLOR_F
SPAN
public static final Html SPAN
LINK
public static final Html LINK
LINK_EXTERNAL
public static final Html LINK_EXTERNAL
Method Details
values
public static Html [] values ()
Returns an array containing the constants of this enum class, in
the order they are declared.
Returns:
an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this class. (Extraneous whitespace characters are
not permitted.)
Parameters:
name
- the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException
- if this enum class has no constant with the specified name
NullPointerException
- if the argument is null
swapColorCodesToSpan
Changes Minecraft color codes to HTML span elements with correct color class assignments.
Parameters:
string
- String to replace Minecraft color codes from
Returns:
String with span elements.
create
Returns:
The HTML String
create
Parameters:
replacements
- The replacement Strings
Returns:
The HTML String