Interface CommandPermission
-
- All Known Subinterfaces:
PredicatePermission<C>
- All Known Implementing Classes:
AndPermission
,OrPermission
,Permission
public interface CommandPermission
A command permission representation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default CommandPermission
and(CommandPermission other)
Return a permission that matches this permission and theother
permission.default CommandPermission
and(CommandPermission... other)
Return a permission that matches this permission and all of theother
permissions.@NonNull java.util.Collection<@NonNull CommandPermission>
getPermissions()
Get the permission nodesdefault CommandPermission
or(CommandPermission other)
Return a permission that matches either this permission or theother
permission.default CommandPermission
or(CommandPermission... other)
Return a permission that matches either this permission or any of theother
permissions.java.lang.String
toString()
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:
toString
in 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 theother
permission.- Parameters:
other
- the other permission to test- Returns:
- a new
or
permission - Since:
- 1.4.0
-
or
default CommandPermission or(CommandPermission... 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
default CommandPermission and(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
default CommandPermission and(CommandPermission... 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
-
-