Enum Class Channel.Flag

java.lang.Object
java.lang.Enum<Channel.Flag>
me.croabeast.takion.channel.Channel.Flag
All Implemented Interfaces:
Serializable, Comparable<Channel.Flag>, java.lang.constant.Constable
Enclosing interface:
Channel

public static enum Channel.Flag extends Enum<Channel.Flag>
Enumeration of possible channel types.

The flag defines how a message should be delivered.

  • Enum Constant Details

    • CHAT

      public static final Channel.Flag CHAT
      A standard chat message.
    • ACTION_BAR

      public static final Channel.Flag ACTION_BAR
      A message displayed in the player's action bar.
    • TITLE

      public static final Channel.Flag TITLE
      A large title displayed in the center of the screen.
    • BOSSBAR

      public static final Channel.Flag BOSSBAR
      A message displayed on a boss bar.
    • JSON

      public static final Channel.Flag JSON
      A message formatted in JSON.
    • WEBHOOK

      public static final Channel.Flag WEBHOOK
      A message sent via a webhook.
  • Method Details

    • values

      public static Channel.Flag[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Channel.Flag valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null