Package net.kyori.adventure.text.event
Interface ClickEvent.Payload.Custom
- All Superinterfaces:
ClickEvent.Payload
,net.kyori.examination.Examinable
,Keyed
- Enclosing interface:
- ClickEvent.Payload
A payload that holds custom data.
- Since:
- 4.22.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.kyori.adventure.text.event.ClickEvent.Payload
ClickEvent.Payload.Custom, ClickEvent.Payload.Dialog, ClickEvent.Payload.Int, ClickEvent.Payload.Text
-
Method Summary
Modifier and TypeMethodDescription@NotNull String
data()
Deprecated.@NotNull BinaryTagHolder
nbt()
The custom data.Methods inherited from interface net.kyori.examination.Examinable
examinableName, examinableProperties, examine
-
Method Details
-
data
Deprecated.For removal since 4.23.0, custom payloads contain NBT data, usenbt()
instead. This method will returnBinaryTagHolder.string()
on the held NBT.The custom data.- Returns:
- the data
- Since:
- 4.22.0
-
nbt
The custom data.See
BinaryTagHolder.string()
for a simple way to return SNBT from NBT data.- Returns:
- the data
- Since:
- 4.23.0
-
nbt()
instead.