Package net.kyori.adventure.permission
Interface PermissionChecker
Something that has permissions.
- Since:
- 4.8.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Pointer<PermissionChecker>
A pointer to a permission predicate. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull PermissionChecker
Creates aPermissionChecker
that always returnsstate
.default boolean
@NotNull TriState
Checks if something has a permission.
-
Field Details
-
POINTER
A pointer to a permission predicate.- Since:
- 4.8.0
-
-
Method Details
-
always
Creates aPermissionChecker
that always returnsstate
.- Parameters:
state
- the state- Returns:
- a
PermissionChecker
- Since:
- 4.8.0
-
value
Checks if something has a permission.- Parameters:
permission
- the permission- Returns:
- a tri-state result
- Since:
- 4.8.0
-
test
-