public enum CommonCommandMessage extends Enum<CommonCommandMessage> implements TranslatableMessage
| Enum Constant and Description |
|---|
CHECK_CONSOLE |
GLOBAL_LINKING_NOTICE |
IS_LINKED_ERROR |
LINKING_DISABLED |
LOCAL_LINKING_NOTICE |
NOT_A_PLAYER |
| Modifier and Type | Method and Description |
|---|---|
String |
getRawMessage()
Returns the message attached to the enum identifier
|
String[] |
getTranslateParts()
Returns the parts of this message (getRawMessage() split on " ")
|
String |
toString() |
static CommonCommandMessage |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommonCommandMessage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOftranslateMessagepublic static final CommonCommandMessage LINKING_DISABLED
public static final CommonCommandMessage NOT_A_PLAYER
public static final CommonCommandMessage CHECK_CONSOLE
public static final CommonCommandMessage IS_LINKED_ERROR
public static final CommonCommandMessage LOCAL_LINKING_NOTICE
public static final CommonCommandMessage GLOBAL_LINKING_NOTICE
public static CommonCommandMessage[] values()
for (CommonCommandMessage c : CommonCommandMessage.values()) System.out.println(c);
public static CommonCommandMessage valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String toString()
toString in class Enum<CommonCommandMessage>public String getRawMessage()
TranslatableMessagegetRawMessage in interface TranslatableMessagepublic String[] getTranslateParts()
TranslatableMessagegetTranslateParts in interface TranslatableMessage