public static @NotNull ClickEvent copyToClipboard(final @NotNull String text) {
    return new ClickEvent(Action.COPY_TO_CLIPBOARD, text);
  }
Creates a click event that copies text to the clipboard.

@param text the text to copy to the clipboard
@return a click event
@since 4.0.0
@sinceMinecraft 1.15
api/src/main/java/net/kyori/adventure/text/event/ClickEvent.java