public enum AccountType extends java.lang.Enum<AccountType>
Enum Constant and Description |
---|
BEDROCK
Bedrock accounts are those authenticated by Mojang servers for Bedrock Edition (multi-platform).
|
OFFLINE
Offline accounts are authenticated by the nLogin (running server) using passwords or any kind of direct authentication.
|
PREMIUM
Premium accounts are those authenticated by Mojang servers for Java Edition (PC).
|
Modifier and Type | Method and Description |
---|---|
static AccountType |
convert(java.lang.Enum<?> twoFactorType) |
static AccountType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AccountType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AccountType PREMIUM
public static final AccountType BEDROCK
public static final AccountType OFFLINE
public static AccountType[] values()
for (AccountType c : AccountType.values()) System.out.println(c);
public static AccountType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@Nullable public static AccountType convert(java.lang.Enum<?> twoFactorType)