Interface CommandPermission
- All Known Subinterfaces:
PredicatePermission<C>
- All Known Implementing Classes:
AndPermission
,OrPermission
,Permission
@API(status=STABLE)
public interface CommandPermission
A command permission representation.
-
Method Summary
Modifier and TypeMethodDescriptiondefault @NonNull CommandPermission
and
(@NonNull CommandPermission other) Return a permission that matches this permission and theother
permission.default @NonNull CommandPermission
and
(@NonNull CommandPermission @NonNull ... other) Return a permission that matches this permission and all of theother
permissions.@NonNull Collection<@NonNull CommandPermission>
Get the permission nodesdefault @NonNull CommandPermission
or
(@NonNull CommandPermission other) Return a permission that matches either this permission or theother
permission.default @NonNull CommandPermission
or
(@NonNull CommandPermission @NonNull ... other) Return a permission that matches either this permission or any of theother
permissions.toString()
Get a string representation of the permission
-
Method Details
-
getPermissions
@NonNull Collection<@NonNull CommandPermission> getPermissions()Get the permission nodes- Returns:
- Permission nodes
-
toString
String toString()Get a string representation of the permission -
or
@API(status=STABLE, since="1.4.0") default @NonNull CommandPermission or(@NonNull CommandPermission other) Return a permission that matches either this permission or theother
permission.- Parameters:
other
- the other permission to test- Returns:
- a new
or
permission - Since:
- 1.4.0
-
or
@API(status=STABLE, since="1.4.0") default @NonNull CommandPermission or(@NonNull CommandPermission @NonNull ... other) Return a permission that matches either this permission or any of theother
permissions.- Parameters:
other
- the other permission to test- Returns:
- a new
or
permission - Since:
- 1.4.0
-
and
@API(status=STABLE, since="1.4.0") default @NonNull CommandPermission and(@NonNull CommandPermission other) Return a permission that matches this permission and theother
permission.- Parameters:
other
- the other permission to test- Returns:
- a new
and
permission - Since:
- 1.4.0
-
and
@API(status=STABLE, since="1.4.0") default @NonNull CommandPermission and(@NonNull CommandPermission @NonNull ... other) Return a permission that matches this permission and all of theother
permissions.- Parameters:
other
- the other permission to test- Returns:
- a new
and
permission - Since:
- 1.4.0
-