Package me.hackware.api.util
Enum Class TextIcons.Icon
- All Implemented Interfaces:
Serializable,Comparable<TextIcons.Icon>,Constable
- Enclosing class:
TextIcons
The available icon glyphs. Codepoints run contiguously from
INFO, and the
order must match IconGlyphProvider.ICONS.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFilled circle with an exclamation — failures and bad usage.Filled info circle — informational messages.LAN icon — local area network (chat prefix, connection notices).Skull — death notifications only.Warning triangle — warnings, errors, usage hints. -
Method Summary
Modifier and TypeMethodDescriptioncharglyph()toString()The glyph itself, so an icon drops straight into a concatenated message.static TextIcons.IconReturns the enum constant of this class with the specified name.static TextIcons.Icon[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INFO
Filled info circle — informational messages. -
WARNING
Warning triangle — warnings, errors, usage hints. -
SKULL
Skull — death notifications only. Logouts and disconnects useWARNING. -
ERROR
Filled circle with an exclamation — failures and bad usage. -
LAN
LAN icon — local area network (chat prefix, connection notices).
-
-
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
-
glyph
public char glyph() -
toString
The glyph itself, so an icon drops straight into a concatenated message.- Overrides:
toStringin classEnum<TextIcons.Icon>
-