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 | Method and Description |
|---|---|
boolean |
isReadable()
Deprecated.
use
readable() |
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.
|
@SerializedName(value="open_url") public static final ClickEvent.Action OPEN_URL
@SerializedName(value="open_file") public static final ClickEvent.Action OPEN_FILE
This action is not readable, and may only be used locally on the client.
@SerializedName(value="run_command") public static final ClickEvent.Action RUN_COMMAND
@SerializedName(value="suggest_command") public static final ClickEvent.Action SUGGEST_COMMAND
@SerializedName(value="change_page") public static final ClickEvent.Action CHANGE_PAGE
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 boolean isReadable()
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>