Interface ClickEvent.Payload

All Superinterfaces:
net.kyori.examination.Examinable
All Known Subinterfaces:
ClickEvent.Payload.Custom, ClickEvent.Payload.Dialog, ClickEvent.Payload.Int, ClickEvent.Payload.Text
Enclosing class:
ClickEvent

public static interface ClickEvent.Payload extends net.kyori.examination.Examinable
A payload for a click event.
Since:
4.22.0
  • Method Details

    • string

      static @NotNull ClickEvent.Payload.Text string(@NotNull @NotNull String value)
      Creates a text payload.
      Parameters:
      value - the payload value
      Returns:
      the payload
      Since:
      4.22.0
    • integer

      static @NotNull ClickEvent.Payload.Int integer(int integer)
      Creates an integer payload.
      Parameters:
      integer - the integer
      Returns:
      the payload
      Since:
      4.22.0
    • dialog

      static @NotNull ClickEvent.Payload.Dialog dialog(@NotNull @NotNull DialogLike dialog)
      Creates a dialog payload.
      Parameters:
      dialog - the payload value
      Returns:
      the payload
      Since:
      4.22.0
    • custom

      static @NotNull ClickEvent.Payload.Custom custom(@NotNull @NotNull Key key, @NotNull @NotNull String data)
      Creates a custom payload.
      Parameters:
      key - the key identifying the payload
      data - the payload data
      Returns:
      the payload
      Since:
      4.22.0