Enum Class CheckOrigin
- All Implemented Interfaces:
Serializable, Comparable<CheckOrigin>, Constable
Represents the origin of a meta check
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIndicates the check was caused by a LuckPerms internalIndicates the check was caused by a LuckPerms API callIndicates the check was caused by a lookup in a platform APIIndicates the check was caused by a 'hasPermission' check on the platformIndicates the check was caused by a 'hasPermissionSet' type check on the platformIndicates the check was caused by a 3rd party API call -
Method Summary
Modifier and TypeMethodDescriptionstatic CheckOriginReturns the enum constant of this class with the specified name.static CheckOrigin[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PLATFORM_API
Indicates the check was caused by a lookup in a platform API -
PLATFORM_API_HAS_PERMISSION
Indicates the check was caused by a 'hasPermission' check on the platform -
PLATFORM_API_HAS_PERMISSION_SET
Indicates the check was caused by a 'hasPermissionSet' type check on the platform -
THIRD_PARTY_API
Indicates the check was caused by a 3rd party API call -
LUCKPERMS_API
Indicates the check was caused by a LuckPerms API call -
INTERNAL
Indicates the check was caused by a LuckPerms internal
-
-
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
-