Package net.kyori.adventure.text.event
Interface ClickEvent.Payload
- All Superinterfaces:
net.kyori.examination.Examinable
- All Known Subinterfaces:
ClickEvent.Payload.Custom
,ClickEvent.Payload.Dialog
,ClickEvent.Payload.Int
,ClickEvent.Payload.Text
- Enclosing class:
- ClickEvent
public static interface ClickEvent.Payload
extends net.kyori.examination.Examinable
A payload for a click event.
- Since:
- 4.22.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
A payload that holds custom data.static interface
A payload that holds a dialog.static interface
A payload that holds an integer.static interface
A payload that holds a string. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic @NotNull ClickEvent.Payload.Custom
Creates a custom payload.static @NotNull ClickEvent.Payload.Dialog
dialog
(@NotNull DialogLike dialog) Creates a dialog payload.static @NotNull ClickEvent.Payload.Int
integer
(int integer) Creates an integer payload.static @NotNull ClickEvent.Payload.Text
Creates a text payload.Methods inherited from interface net.kyori.examination.Examinable
examinableName, examinableProperties, examine
-
Method Details
-
string
Creates a text payload.- Parameters:
value
- the payload value- Returns:
- the payload
- Since:
- 4.22.0
-
integer
Creates an integer payload.- Parameters:
integer
- the integer- Returns:
- the payload
- Since:
- 4.22.0
-
dialog
Creates a dialog payload.- Parameters:
dialog
- the payload value- Returns:
- the payload
- Since:
- 4.22.0
-
custom
static @NotNull ClickEvent.Payload.Custom custom(@NotNull @NotNull Key key, @NotNull @NotNull String data) Creates a custom payload.- Parameters:
key
- the key identifying the payloaddata
- the payload data- Returns:
- the payload
- Since:
- 4.22.0
-