public static enum LinkAccountCommand.Message extends Enum<LinkAccountCommand.Message> implements TranslatableMessage
| Enum Constant and Description |
|---|
ALREADY_LINKED |
BEDROCK_USAGE |
INVALID_CODE |
JAVA_USAGE |
LINK_REQUEST_COMPLETED |
LINK_REQUEST_CREATED |
LINK_REQUEST_ERROR |
LINK_REQUEST_EXPIRED |
NO_LINK_REQUESTED |
| 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 " ")
|
static LinkAccountCommand.Message |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LinkAccountCommand.Message[] |
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, toString, valueOftranslateMessagepublic static final LinkAccountCommand.Message ALREADY_LINKED
public static final LinkAccountCommand.Message JAVA_USAGE
public static final LinkAccountCommand.Message LINK_REQUEST_CREATED
public static final LinkAccountCommand.Message BEDROCK_USAGE
public static final LinkAccountCommand.Message LINK_REQUEST_EXPIRED
public static final LinkAccountCommand.Message LINK_REQUEST_COMPLETED
public static final LinkAccountCommand.Message LINK_REQUEST_ERROR
public static final LinkAccountCommand.Message INVALID_CODE
public static final LinkAccountCommand.Message NO_LINK_REQUESTED
public static LinkAccountCommand.Message[] values()
for (LinkAccountCommand.Message c : LinkAccountCommand.Message.values()) System.out.println(c);
public static LinkAccountCommand.Message 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 getRawMessage()
TranslatableMessagegetRawMessage in interface TranslatableMessagepublic String[] getTranslateParts()
TranslatableMessagegetTranslateParts in interface TranslatableMessage