Package com.minecolonies.api.util
Enum Class MessageUtils.MessagePriority
- All Implemented Interfaces:
Serializable,Comparable<MessageUtils.MessagePriority>,Constable
- Enclosing class:
- MessageUtils
Message priority types handle different types of message displays.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDanger priority messages, these are shown for anything involving in serious dangerous events in the colony (ex.Important priority messages, these are important events that require player attention, shown in an outstanding color (gold).Normal priority messages, these are not important messages sent to the colony, shown in a dimmed color (gray). -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageUtils.MessagePriorityReturns the enum constant of this class with the specified name.static MessageUtils.MessagePriority[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NORMAL
Normal priority messages, these are not important messages sent to the colony, shown in a dimmed color (gray). -
IMPORTANT
Important priority messages, these are important events that require player attention, shown in an outstanding color (gold). -
DANGER
Danger priority messages, these are shown for anything involving in serious dangerous events in the colony (ex. raids), shown in the danger color (red).
-
-
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
-