@Environment(value=CLIENT) public static enum Session.AccountType extends Enum<Session.AccountType>
Modifier and Type | Field and Description |
---|---|
private static Map<String,Session.AccountType> |
BY_NAME |
private String |
name |
Modifier and Type | Method and Description |
---|---|
static Session.AccountType |
byName(String string) |
static Session.AccountType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Session.AccountType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Session.AccountType LEGACY
public static final Session.AccountType MOJANG
private static final Map<String,Session.AccountType> BY_NAME
private final String name
public static Session.AccountType[] values()
for (Session.AccountType c : Session.AccountType.values()) System.out.println(c);
public static Session.AccountType 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 null@Nullable public static Session.AccountType byName(String string)