Interface CommandPermission
-
- All Known Subinterfaces:
PredicatePermission<C>
- All Known Implementing Classes:
AndPermission,OrPermission,Permission
public interface CommandPermissionA command permission representation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CommandPermissionand(CommandPermission other)Return a permission that matches this permission and theotherpermission.default CommandPermissionand(CommandPermission... other)Return a permission that matches this permission and all of theotherpermissions.@NonNull java.util.Collection<@NonNull CommandPermission>getPermissions()Get the permission nodesdefault CommandPermissionor(CommandPermission other)Return a permission that matches either this permission or theotherpermission.default CommandPermissionor(CommandPermission... other)Return a permission that matches either this permission or any of theotherpermissions.java.lang.StringtoString()Get a string representation of the permission
-
-
-
Method Detail
-
getPermissions
@NonNull java.util.Collection<@NonNull CommandPermission> getPermissions()
Get the permission nodes- Returns:
- Permission nodes
-
toString
java.lang.String toString()
Get a string representation of the permission- Overrides:
toStringin classjava.lang.Object- Returns:
- String representation of the permission node
-
or
default CommandPermission or(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
default CommandPermission or(CommandPermission... 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
default CommandPermission and(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
default CommandPermission and(CommandPermission... 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
-
-