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

@param function the function to execute
@param optionsBuilder function that will be called to configure the click callback options
@return a callback click event
@since 4.13.0
api/src/main/java/net/kyori/adventure/text/event/ClickEvent.java