Uses of Interface
net.kyori.adventure.text.event.ClickCallback
Packages that use ClickCallback
Package
Description
Events that occur when players interact with components.
-
Uses of ClickCallback in net.kyori.adventure.text.event
Methods in net.kyori.adventure.text.event that return ClickCallbackModifier and TypeMethodDescriptiondefault ClickCallback<T> Filter audiences that receive this click callback.default ClickCallback<T> Filter audiences that receive this click callback.default ClickCallback<T> ClickCallback.requiringPermission(String permission) Require that audiences receiving this callback have a certain permission.default ClickCallback<T> ClickCallback.requiringPermission(String permission, @Nullable Consumer<? super Audience> otherwise) Require that audiences receiving this callback have a certain permission.static <W extends Audience, N extends W>
ClickCallback<W> ClickCallback.widen(ClickCallback<N> original, Class<N> type) Adjust this callback to accept any audience, and perform the appropriate filtering.static <W extends Audience, N extends W>
ClickCallback<W> ClickCallback.widen(ClickCallback<N> original, Class<N> type, @Nullable Consumer<? super Audience> otherwise) Adjust this callback to accept any audience, and perform the appropriate filtering.Methods in net.kyori.adventure.text.event with parameters of type ClickCallbackModifier 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.ClickEvent<?> ClickCallback.Provider.create(ClickCallback<Audience> callback, ClickCallback.Options options) Create a real click event based on the provided parameters.static <W extends Audience, N extends W>
ClickCallback<W> ClickCallback.widen(ClickCallback<N> original, Class<N> type) Adjust this callback to accept any audience, and perform the appropriate filtering.static <W extends Audience, N extends W>
ClickCallback<W> ClickCallback.widen(ClickCallback<N> original, Class<N> type, @Nullable Consumer<? super Audience> otherwise) Adjust this callback to accept any audience, and perform the appropriate filtering.