Package com.nickuc.login.api.enums
Enum Class ImplementationType
- All Implemented Interfaces:
Serializable
,Comparable<ImplementationType>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImplementationType
Returns the enum constant of this class with the specified name.static ImplementationType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
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
-