Enum Class CommonCommandMessage

java.lang.Object
java.lang.Enum<CommonCommandMessage>
org.geysermc.floodgate.core.command.CommonCommandMessage
All Implemented Interfaces:
Serializable, Comparable<CommonCommandMessage>, Constable, TranslatableMessage

public enum CommonCommandMessage extends Enum<CommonCommandMessage> implements TranslatableMessage
Messages (or part of messages) that are used in two or more commands and thus are 'commonly used'
  • Enum Constant Details

  • Method Details

    • values

      public static CommonCommandMessage[] 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 CommonCommandMessage 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
    • toString

      public String toString()
      Overrides:
      toString in class Enum<CommonCommandMessage>
    • getRawMessage

      public String getRawMessage()
      Description copied from interface: TranslatableMessage
      Returns the message attached to the enum identifier
      Specified by:
      getRawMessage in interface TranslatableMessage
    • getTranslateParts

      public String[] getTranslateParts()
      Description copied from interface: TranslatableMessage
      Returns the parts of this message (getRawMessage() split on " ")
      Specified by:
      getTranslateParts in interface TranslatableMessage