Package com.nickuc.login.api.enums
Enum Class AccountType
- All Implemented Interfaces:
Serializable
,Comparable<AccountType>
,Constable
Account types available in nLogin.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBedrock accounts are those authenticated by Mojang servers for Bedrock Edition (multi-platform).Offline accounts are authenticated by the nLogin (running server) using passwords or any kind of direct authentication.Premium accounts are those authenticated by Mojang servers for Java Edition (PC). -
Method Summary
Modifier and TypeMethodDescriptionstatic AccountType
static AccountType
Returns the enum constant of this class with the specified name.static AccountType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PREMIUM
Premium accounts are those authenticated by Mojang servers for Java Edition (PC).
The nicknames used for identification belong to the owners.- See Also:
-
BEDROCK
Bedrock accounts are those authenticated by Mojang servers for Bedrock Edition (multi-platform).
The nicknames used for identification belong to the owners.- See Also:
-
OFFLINE
Offline accounts are authenticated by the nLogin (running server) using passwords or any kind of direct authentication.
The nicknames can be chosen by anyone, so the account does not necessarily belong to the owner of the nickname.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
convert
-