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 CommandPermissionand(@NonNull CommandPermission other) Return a permission that matches this permission and theotherpermission.default @NonNull CommandPermissionand(@NonNull CommandPermission @NonNull ... other) Return a permission that matches this permission and all of theotherpermissions.@NonNull Collection<@NonNull CommandPermission>Get the permission nodesdefault @NonNull CommandPermissionor(@NonNull CommandPermission other) Return a permission that matches either this permission or theotherpermission.default @NonNull CommandPermissionor(@NonNull CommandPermission @NonNull ... other) Return a permission that matches either this permission or any of theotherpermissions.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 theotherpermission.- Parameters:
other- the other permission to test- Returns:
- a new
orpermission - 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 theotherpermissions.- Parameters:
other- the other permission to test- Returns:
- a new
orpermission - 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 theotherpermission.- Parameters:
other- the other permission to test- Returns:
- a new
andpermission - 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 theotherpermissions.- Parameters:
other- the other permission to test- Returns:
- a new
andpermission - Since:
- 1.4.0
-