public static enum ClickEvent.Action extends java.lang.Enum<ClickEvent.Action>
Enum Constant and Description |
---|
CHANGE_PAGE |
COPY_TO_CLIPBOARD |
OPEN_FILE |
OPEN_URL |
RUN_COMMAND |
SUGGEST_COMMAND |
Modifier and Type | Field and Description |
---|---|
private boolean |
allowedInChat |
private java.lang.String |
canonicalName |
private static java.util.Map<java.lang.String,ClickEvent.Action> |
NAME_MAPPING |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCanonicalName() |
static ClickEvent.Action |
getValueByCanonicalName(java.lang.String canonicalNameIn) |
boolean |
shouldAllowInChat() |
static ClickEvent.Action |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ClickEvent.Action[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ClickEvent.Action OPEN_URL
public static final ClickEvent.Action OPEN_FILE
public static final ClickEvent.Action RUN_COMMAND
public static final ClickEvent.Action SUGGEST_COMMAND
public static final ClickEvent.Action CHANGE_PAGE
public static final ClickEvent.Action COPY_TO_CLIPBOARD
private static final java.util.Map<java.lang.String,ClickEvent.Action> NAME_MAPPING
private final boolean allowedInChat
private final java.lang.String canonicalName
public static ClickEvent.Action[] values()
for (ClickEvent.Action c : ClickEvent.Action.values()) System.out.println(c);
public static ClickEvent.Action 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 boolean shouldAllowInChat()
public java.lang.String getCanonicalName()
public static ClickEvent.Action getValueByCanonicalName(java.lang.String canonicalNameIn)