Enum Class ImplementationType

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

public enum ImplementationType extends Enum<ImplementationType>
  • Enum Constant Details

    • NATIVE

      public static final ImplementationType NATIVE
      Native implementation means that the API has been implemented by the nLogin kernel.
      Access to the API functions will be available at all times without restrictions.

      Situations that the implementation is native:

      • The core is in backend server (Bukkit) and the API has been called from the same backend server.
      • The core is in the proxy server (Bungee, Waterfall, Velocity, etc.) and the API was called from the same proxy server.
    • PROXY

      public static final ImplementationType PROXY
      Proxy implementation means that the API has been implemented through a proxy that communicates to the nLogin core.
      Access to API functions may be limited or available for a limited time.

      Situations that the implementation is by proxy:

      • The core is on the proxy server (Bungee, Waterfall, Velocity, etc.) and the API was called from the backend server (Bukkit).
  • Method Details

    • values

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