public static enum ClickEvent.Action extends Enum<ClickEvent.Action>
Enum Constant and Description |
---|
CHANGE_PAGE
Change to the page number given by
ClickEvent.value in a book. |
COPY_TO_CLIPBOARD
Copy the string given by
ClickEvent.value into the player's
clipboard. |
OPEN_FILE
Open a file at the path given by
ClickEvent.value . |
OPEN_URL
Open a url at the path given by
ClickEvent.value . |
RUN_COMMAND
Run the command given by
ClickEvent.value . |
SUGGEST_COMMAND
Inserts the string given by
ClickEvent.value into the player's
text box. |
Modifier and Type | Method and Description |
---|---|
static ClickEvent.Action |
valueOf(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
ClickEvent.value
.public static final ClickEvent.Action OPEN_FILE
ClickEvent.value
.public static final ClickEvent.Action RUN_COMMAND
ClickEvent.value
.public static final ClickEvent.Action SUGGEST_COMMAND
ClickEvent.value
into the player's
text box.public static final ClickEvent.Action CHANGE_PAGE
ClickEvent.value
in a book.public static final ClickEvent.Action COPY_TO_CLIPBOARD
ClickEvent.value
into the player's
clipboard.public static ClickEvent.Action[] values()
for (ClickEvent.Action c : ClickEvent.Action.values()) System.out.println(c);
public static ClickEvent.Action valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2012–2020 SpigotMC. All rights reserved.