Uses of Class
net.kyori.adventure.text.event.ClickEvent
Packages that use ClickEvent
Package
Description
Data for controlling components, their styles, and events.
Events that occur when players interact with components.
Formats which may be applied to components.
-
Uses of ClickEvent in net.kyori.adventure.text
Methods in net.kyori.adventure.text that return ClickEventModifier and TypeMethodDescriptiondefault @Nullable ClickEvent<?> Component.clickEvent()Gets the click event of this component.Methods in net.kyori.adventure.text with parameters of type ClickEventModifier and TypeMethodDescriptiondefault ComponentComponent.clickEvent(@Nullable ClickEvent<?> event) Sets the click event of this component.ComponentBuilder.clickEvent(@Nullable ClickEvent<?> event) Sets the click event of this component.default CScopedComponent.clickEvent(@Nullable ClickEvent<?> event) -
Uses of ClickEvent in net.kyori.adventure.text.event
Methods in net.kyori.adventure.text.event that return ClickEventModifier and TypeMethodDescriptionstatic ClickEvent<?> ClickEvent.callback(ClickCallback<Audience> function) Create a click event that, when clicked, will schedule a callback function to be executed on the server.static ClickEvent<?> ClickEvent.callback(ClickCallback<Audience> function, Consumer<ClickCallback.Options.Builder> optionsBuilder) Create a click event that, when clicked, will schedule a callback function to be executed on the server.static ClickEvent<?> ClickEvent.callback(ClickCallback<Audience> function, ClickCallback.Options options) Create a click event that, when clicked, will schedule a callback function to be executed on the server.static ClickEvent<ClickEvent.Payload.Int> ClickEvent.changePage(int page) Creates a click event that changes to a page.static <T extends ClickEvent.Payload>
ClickEvent<T> ClickEvent.clickEvent(ClickEvent.Action<T> action, T payload) Creates a click event with apayload.static ClickEvent<ClickEvent.Payload.Text> ClickEvent.copyToClipboard(String text) Creates a click event that copies text to the clipboard.ClickEvent<?> ClickCallback.Provider.create(ClickCallback<Audience> callback, ClickCallback.Options options) Create a real click event based on the provided parameters.static ClickEvent<ClickEvent.Payload.Custom> Creates a click event that sends a custom event to the server.static ClickEvent<ClickEvent.Payload.Custom> ClickEvent.custom(Key key, @Nullable BinaryTagHolder nbt) Creates a click event that sends a custom event to the server.static ClickEvent<ClickEvent.Payload.Text> Creates a click event that opens a file.static ClickEvent<ClickEvent.Payload.Text> Creates a click event that opens a url.static ClickEvent<ClickEvent.Payload.Text> Creates a click event that opens a url.static ClickEvent<ClickEvent.Payload.Text> ClickEvent.runCommand(String command) Creates a click event that runs a command.static ClickEvent<ClickEvent.Payload.Dialog> ClickEvent.showDialog(DialogLike dialog) Creates a click event that shows a dialog.static ClickEvent<ClickEvent.Payload.Text> ClickEvent.suggestCommand(String command) Creates a click event that suggests a command. -
Uses of ClickEvent in net.kyori.adventure.text.format
Methods in net.kyori.adventure.text.format that return ClickEventModifier and TypeMethodDescription@Nullable ClickEvent<?> Style.clickEvent()Gets the click event.@Nullable ClickEvent<?> StyleGetter.clickEvent()Gets the click event.Methods in net.kyori.adventure.text.format with parameters of type ClickEventModifier and TypeMethodDescriptionStyle.Builder.clickEvent(@Nullable ClickEvent<?> event) Sets the click event.Style.clickEvent(@Nullable ClickEvent<?> event) Sets the click event.StyleSetter.clickEvent(@Nullable ClickEvent<?> event) Sets the click event.