Enum Class AccountType

java.lang.Object
java.lang.Enum<AccountType>
com.nickuc.login.api.enums.AccountType
All Implemented Interfaces:
Serializable, Comparable<AccountType>, Constable

public enum AccountType extends Enum<AccountType>
Account types available in nLogin.
  • Enum Constant Details

    • PREMIUM

      public static final AccountType 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

      public static final AccountType 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

      public static final AccountType 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

      public static AccountType[] 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

      public static AccountType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • convert

      @Nullable public static AccountType convert(Enum<?> twoFactorType)