public enum TextDecoration extends java.lang.Enum<TextDecoration> implements TextFormat
Component.| Modifier and Type | Class and Description |
|---|---|
static class |
TextDecoration.State
A state that a
TextDecoration can be in. |
| Enum Constant and Description |
|---|
BOLD
A decoration which makes text appear bold.
|
ITALIC
A decoration which makes text appear in italics.
|
OBFUSCATED
A decoration which makes text obfuscated/unreadable.
|
STRIKETHROUGH
A decoration which makes text have a strike through it.
|
UNDERLINE
A decoration which makes text have an underline.
|
| Modifier and Type | Method and Description |
|---|---|
char |
legacy()
Deprecated.
|
@NonNull java.lang.String |
toString() |
static TextDecoration |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TextDecoration[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@SerializedName(value="obfuscated") public static final TextDecoration OBFUSCATED
@SerializedName(value="bold") public static final TextDecoration BOLD
@SerializedName(value="strikethrough") public static final TextDecoration STRIKETHROUGH
@SerializedName(value="underlined") public static final TextDecoration UNDERLINE
@SerializedName(value="italic") public static final TextDecoration ITALIC
public static TextDecoration[] values()
for (TextDecoration c : TextDecoration.values()) System.out.println(c);
public static TextDecoration 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 null@Deprecated public char legacy()
TextFormatlegacy in interface TextFormatpublic @NonNull java.lang.String toString()
toString in class java.lang.Enum<TextDecoration>