public static enum ClickEvent.Action extends java.lang.Enum<ClickEvent.Action>
| Enum Constant and Description |
|---|
CHANGE_PAGE
Changes the page of a book.
|
OPEN_FILE
Opens a file when clicked.
|
OPEN_URL
Opens a url when clicked.
|
RUN_COMMAND
Runs a command when clicked.
|
SUGGEST_COMMAND
Suggests a command into the chat box.
|
| Modifier and Type | Field and Description |
|---|---|
static NameMap<ClickEvent.Action> |
NAMES
The name map.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
readable()
Tests if this action is readable.
|
@NonNull java.lang.String |
toString() |
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
This action is not readable, and may only be used locally on the client.
public static final ClickEvent.Action RUN_COMMAND
public static final ClickEvent.Action SUGGEST_COMMAND
public static final ClickEvent.Action CHANGE_PAGE
public static final NameMap<ClickEvent.Action> NAMES
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 readable()
true if this action is readable, false if this
action is not readablepublic @NonNull java.lang.String toString()
toString in class java.lang.Enum<ClickEvent.Action>