Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

import net.kyori.adventure.audience.Audience;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.event.ClickCallback;
import net.kyori.adventure.text.event.ClickEvent;
import net.kyori.adventure.text.flattener.ComponentFlattener;
import org.spongepowered.api.Sponge;
Expand All @@ -48,7 +49,11 @@ private SpongeComponents() {
*
* @param callback The callback to execute
* @return The created click event instance
*
* @deprecated Use {@link ClickEvent#callback(ClickCallback, ClickCallback.Options)} instead.
*
*/
@Deprecated(forRemoval = true)
public static ClickEvent executeCallback(final Consumer<CommandCause> callback) {
return SpongeComponents.factory().callbackClickEvent(callback);
}
Expand Down