public static @NotNull ClickEvent callback(final @NotNull ClickCallback<Audience> function) {
    return ClickCallbackInternals.PROVIDER.create(requireNonNull(function, "function"), ClickCallbackOptionsImpl.DEFAULT);
  }
Create a click event that, when clicked, will schedule a callback function to be executed on the server.

<p>By default, this will be a single-use function that expires after the value of {@link ClickCallback#DEFAULT_LIFETIME}.</p>

@param function the function to execute
@return a callback click event
@since 4.13.0
api/src/main/java/net/kyori/adventure/text/event/ClickEvent.java