Enum Class ChatChannel

java.lang.Object
java.lang.Enum<ChatChannel>
com.ohacd.matchbox.api.ChatChannel
All Implemented Interfaces:
Serializable, Comparable<ChatChannel>, Constable

public enum ChatChannel extends Enum<ChatChannel>
Represents different chat channels in the Matchbox chat system. Used to route messages to appropriate recipients based on player status and game state.
Since:
0.9.5
  • Enum Constant Details

    • GAME

      public static final ChatChannel GAME
      Game chat channel - messages from alive players visible to alive players and spectators. Spectators cannot send to this channel.
    • SPECTATOR

      public static final ChatChannel SPECTATOR
      Spectator chat channel - messages from spectators visible only to other spectators in the same session. Alive players cannot see or send to this channel.
    • GLOBAL

      public static final ChatChannel GLOBAL
      Global chat channel - bypasses all game chat filtering and uses normal server chat. Used for administrative messages or when chat should not be filtered.
  • Method Details

    • values

      public static ChatChannel[] 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 ChatChannel 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