Package com.ohacd.matchbox.api
Enum Class ChatChannel
- All Implemented Interfaces:
Serializable,Comparable<ChatChannel>,Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionGame chat channel - messages from alive players visible to alive players and spectators.Global chat channel - bypasses all game chat filtering and uses normal server chat.Spectator chat channel - messages from spectators visible only to other spectators in the same session. -
Method Summary
Modifier and TypeMethodDescriptionstatic ChatChannelReturns the enum constant of this class with the specified name.static ChatChannel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GAME
Game chat channel - messages from alive players visible to alive players and spectators. Spectators cannot send to this channel. -
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
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
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
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 nameNullPointerException- if the argument is null
-