Package games.stendhal.common
Enum Class NotificationType
- All Implemented Interfaces:
Serializable,Comparable<NotificationType>,Constable
A logical notification type, which can be mapped to UI specific contexts.
This would be similar to logical styles vs. physical styles in HTML.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Colorstatic final Colormuted purplestatic final Colorstatic final Colordark bluestatic final Colorstatic final Colorstatic final Colorstatic final Colorstatic final Colorstatic final Colordark greenstatic final Colordark brownstatic final Colorstatic final Colorbright turquoise bluestatic final Colorstrong bright orangestatic final Colorpurplestatic final Colordark redprotected StringThe mapping mnemonic.static final Stringnormal is boldstatic final Stringregular is not bold -
Method Summary
Modifier and TypeMethodDescriptiongetColor()Get the color that is tied to a notification type.Get the mapping mnemonic (programmatic name).static NotificationTypegetServerNotificationType(String clientVersion) Get notification type for server messages that the client can show without problems.Get the style that is tied to a notification type.static NotificationTypeReturns the enum constant of this class with the specified name.static NotificationType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLIENT
-
ERROR
-
HEAL
-
INFORMATION
-
NEGATIVE
-
NORMAL
-
POISON
-
POSITIVE
-
EMOTE
-
GROUP
-
PRIVMSG
-
RESPONSE
-
SCENE_SETTING
-
SERVER
-
SIGNIFICANT_NEGATIVE
-
SIGNIFICANT_POSITIVE
-
TUTORIAL
-
SUPPORT
-
DETAILED
-
WARNING
-
EMOJI
-
-
Field Details
-
COLOR_CLIENT
-
COLOR_ERROR
-
COLOR_INFORMATION
-
COLOR_NEGATIVE
-
COLOR_NORMAL
-
COLOR_POSITIVE
-
COLOR_GROUP
dark blue -
COLOR_EMOTE
muted purple -
COLOR_PRIVMSG
-
COLOR_RESPONSE
dark green -
COLOR_SCENE_SETTING
dark brown -
COLOR_SIGNIFICANT_NEGATIVE
-
COLOR_SIGNIFICANT_POSITIVE
bright turquoise blue -
COLOR_TUTORIAL
purple -
COLOR_SUPPORT
strong bright orange -
COLOR_WARNING
dark red -
NORMALSTYLE
normal is bold- See Also:
-
REGULAR
regular is not bold- See Also:
-
mnemonic
The mapping mnemonic.
-
-
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
-
getMnemonic
Get the mapping mnemonic (programmatic name).- Returns:
- The mapping mnemonic.
-
getColor
Get the color that is tied to a notification type.- Returns:
- The appropriate color.
-
getStyleDescription
Get the style that is tied to a notification type.- Returns:
- The appropriate style.
-
getServerNotificationType
Get notification type for server messages that the client can show without problems. Call this instead of using SERVER directly.- Parameters:
clientVersion- version of the client- Returns:
- appropriate type
-