Enum Constant and Description |
---|
BACK_BUTTON_NETWORK |
BACK_BUTTON_SERVER |
COLOR_0 |
COLOR_1 |
COLOR_2 |
COLOR_3 |
COLOR_4 |
COLOR_5 |
COLOR_6 |
COLOR_7 |
COLOR_8 |
COLOR_9 |
COLOR_A |
COLOR_B |
COLOR_C |
COLOR_D |
COLOR_E |
COLOR_F |
LINK |
LINK_EXTERNAL |
SPAN |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
create() |
java.lang.String |
create(java.io.Serializable... replacements) |
static java.lang.String |
encodeToURL(java.lang.String string) |
static java.lang.String |
separateWithDots(java.lang.String... elements) |
static java.lang.String |
swapColorCodesToSpan(java.lang.String string)
Changes Minecraft color codes to HTML span elements with correct color class assignments.
|
static Html |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Html[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Html COLOR_0
public static final Html COLOR_1
public static final Html COLOR_2
public static final Html COLOR_3
public static final Html COLOR_4
public static final Html COLOR_5
public static final Html COLOR_6
public static final Html COLOR_7
public static final Html COLOR_8
public static final Html COLOR_9
public static final Html COLOR_A
public static final Html COLOR_B
public static final Html COLOR_C
public static final Html COLOR_D
public static final Html COLOR_E
public static final Html COLOR_F
public static final Html SPAN
public static final Html LINK
public static final Html LINK_EXTERNAL
public static final Html BACK_BUTTON_NETWORK
public static final Html BACK_BUTTON_SERVER
public static Html[] values()
for (Html c : Html.values()) System.out.println(c);
public static Html valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static java.lang.String swapColorCodesToSpan(java.lang.String string)
string
- String to replace Minecraft color codes frompublic static java.lang.String separateWithDots(java.lang.String... elements)
public java.lang.String create()
public java.lang.String create(java.io.Serializable... replacements)
replacements
- The replacement Stringspublic static java.lang.String encodeToURL(java.lang.String string)