Enum Class MessageUtils.MessagePriority

java.lang.Object
java.lang.Enum<MessageUtils.MessagePriority>
com.minecolonies.api.util.MessageUtils.MessagePriority
All Implemented Interfaces:
Serializable, Comparable<MessageUtils.MessagePriority>, Constable
Enclosing class:
MessageUtils

public static enum MessageUtils.MessagePriority extends Enum<MessageUtils.MessagePriority>
Message priority types handle different types of message displays.
  • Enum Constant Details

    • NORMAL

      public static final MessageUtils.MessagePriority NORMAL
      Normal priority messages, these are not important messages sent to the colony, shown in a dimmed color (gray).
    • IMPORTANT

      public static final MessageUtils.MessagePriority IMPORTANT
      Important priority messages, these are important events that require player attention, shown in an outstanding color (gold).
    • DANGER

      public static final MessageUtils.MessagePriority 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

      public static MessageUtils.MessagePriority[] 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

      public static MessageUtils.MessagePriority valueOf(String name)
      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 name
      NullPointerException - if the argument is null