Package net.luckperms.api.cacheddata
Interface CachedPermissionData
-
- All Superinterfaces:
CachedData
public interface CachedPermissionData extends CachedData
Holds cached permission lookup data for a specific set of contexts.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NonNull TristatecheckPermission(@NonNull String permission)Gets a permission check result for the given permission node.@NonNull @Unmodifiable Map<String,Boolean>getPermissionMap()Gets an immutable copy of the permission map backing the permission calculatorvoidinvalidateCache()Invalidates the underlying permission calculator cache.-
Methods inherited from interface net.luckperms.api.cacheddata.CachedData
getQueryOptions
-
-
-
-
Method Detail
-
checkPermission
@NonNull Tristate checkPermission(@NonNull String permission)
Gets a permission check result for the given permission node.- Parameters:
permission- the permission node- Returns:
- a tristate result
- Throws:
NullPointerException- if permission is null
-
invalidateCache
void invalidateCache()
Invalidates the underlying permission calculator cache.Can be called to allow for an update in defaults.
-
getPermissionMap
@NonNull @Unmodifiable Map<String,Boolean> getPermissionMap()
Gets an immutable copy of the permission map backing the permission calculator- Returns:
- an immutable set of permissions
-
-