Package net.md_5.bungee.api
Enum ChatMessageType
- java.lang.Object
-
- java.lang.Enum<ChatMessageType>
-
- net.md_5.bungee.api.ChatMessageType
-
- All Implemented Interfaces:
Serializable,Comparable<ChatMessageType>
public enum ChatMessageType extends Enum<ChatMessageType>
Represents the position on the screen where a message will appear.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACTION_BARCHATSYSTEM
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ChatMessageTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ChatMessageType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CHAT
public static final ChatMessageType CHAT
-
SYSTEM
public static final ChatMessageType SYSTEM
-
ACTION_BAR
public static final ChatMessageType ACTION_BAR
-
-
Method Detail
-
values
public static ChatMessageType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ChatMessageType c : ChatMessageType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ChatMessageType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-