Package net.kyori.adventure.text.event
Enum ClickEvent.Action
- java.lang.Object
- 
- java.lang.Enum<ClickEvent.Action>
- 
- net.kyori.adventure.text.event.ClickEvent.Action
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Comparable<ClickEvent.Action>
 - Enclosing class:
- ClickEvent
 
 public static enum ClickEvent.Action extends java.lang.Enum<ClickEvent.Action> An enumeration of click event actions.- Since:
- 4.0.0
 
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description CHANGE_PAGEChanges the page of a book.COPY_TO_CLIPBOARDCopies text to the clipboard.OPEN_FILEOpens a file when clicked.OPEN_URLOpens a url when clicked.RUN_COMMANDRuns a command when clicked.SUGGEST_COMMANDSuggests a command into the chat box.
 - 
Field SummaryFields Modifier and Type Field Description static Index<java.lang.String,ClickEvent.Action>NAMESThe name map.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanreadable()Tests if this action is readable.@NotNull java.lang.StringtoString()static ClickEvent.ActionvalueOf(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.
 
- 
- 
- 
Enum Constant Detail- 
OPEN_URLpublic static final ClickEvent.Action OPEN_URL Opens a url when clicked.- Since:
- 4.0.0
 
 - 
OPEN_FILEpublic static final ClickEvent.Action OPEN_FILE Opens a file when clicked.This action is not readable, and may only be used locally on the client. - Since:
- 4.0.0
 
 - 
RUN_COMMANDpublic static final ClickEvent.Action RUN_COMMAND Runs a command when clicked.- Since:
- 4.0.0
 
 - 
SUGGEST_COMMANDpublic static final ClickEvent.Action SUGGEST_COMMAND Suggests a command into the chat box.- Since:
- 4.0.0
 
 - 
CHANGE_PAGEpublic static final ClickEvent.Action CHANGE_PAGE Changes the page of a book.- Since:
- 4.0.0
 
 - 
COPY_TO_CLIPBOARDpublic static final ClickEvent.Action COPY_TO_CLIPBOARD Copies text to the clipboard.- Since:
- 4.0.0
- Since Minecraft:
- 1.15
 
 
- 
 - 
Field Detail- 
NAMESpublic static final Index<java.lang.String,ClickEvent.Action> NAMES The name map.- Since:
- 4.0.0
 
 
- 
 - 
Method Detail- 
valuespublic static ClickEvent.Action[] values() Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ClickEvent.Action c : ClickEvent.Action.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static ClickEvent.Action valueOf(java.lang.String name) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
- name- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
- java.lang.IllegalArgumentException- if this enum type has no constant with the specified name
- java.lang.NullPointerException- if the argument is null
 
 - 
readablepublic boolean readable() Tests if this action is readable.- Returns:
- trueif this action is readable,- falseif this action is not readable
- Since:
- 4.0.0
 
 - 
toString@NotNull public @NotNull java.lang.String toString() - Overrides:
- toStringin class- java.lang.Enum<ClickEvent.Action>
 
 
- 
 
-