-
public final class ClickEventKt
-
-
Method Summary
Modifier and Type Method Description final ClickEventopenURL(String url)Creates a new ClickEvent which opens a URL when clicked final ClickEventrunCommand(String command)Creates a new ClickEvent which runs a command when clicked final ClickEventsuggestCommand(String suggestedCommand)Creates a new ClickEvent which suggests a command to run when clicked final ClickEventchangePage(Integer page)Creates a new ClickEvent which changes the current page of the book the user has opened when clickedRequires that the user has a book opened to function correctly final ClickEventcopyToClipboard(String value)Creates a new ClickEvent which copies the specified value to the user's clipboard when clicked -
-
Method Detail
-
openURL
final ClickEvent openURL(String url)
Creates a new ClickEvent which opens a URL when clicked
-
runCommand
final ClickEvent runCommand(String command)
Creates a new ClickEvent which runs a command when clicked
-
suggestCommand
final ClickEvent suggestCommand(String suggestedCommand)
Creates a new ClickEvent which suggests a command to run when clicked
-
changePage
final ClickEvent changePage(Integer page)
Creates a new ClickEvent which changes the current page of the book the user has opened when clicked
Requires that the user has a book opened to function correctly
-
copyToClipboard
final ClickEvent copyToClipboard(String value)
Creates a new ClickEvent which copies the specified value to the user's clipboard when clicked
-
-
-
-