Package dev.kitteh.factions
Interface Faction.Permissions
- All Known Implementing Classes:
MemoryFaction.Permissions
- Enclosing interface:
Faction
public static interface Faction.Permissions
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionadd(PermSelector selector) Adds a selector.voidclear()Clears everything.get(PermSelector selector) Gets a selector's perms.booleanhas(PermSelector selector) Gets if a given selector is tracked.voidmoveSelectorDown(PermSelector selector) Moves the given selector down in the order.voidmoveSelectorUp(PermSelector selector) Moves the given selector up in the order.voidremove(PermSelector selector) Removes a selector.Gets an immutable, ordered list of the selectors tracked.
-
Method Details
-
selectors
List<PermSelector> selectors()Gets an immutable, ordered list of the selectors tracked.- Returns:
- the selectors
-
moveSelectorUp
Moves the given selector up in the order.- Parameters:
selector- selector to move up
-
moveSelectorDown
Moves the given selector down in the order.- Parameters:
selector- selector to move down
-
get
Gets a selector's perms.- Parameters:
selector- selector to get- Returns:
- perms
- Throws:
IllegalArgumentException- if this selector is not tracked
-
has
Gets if a given selector is tracked.- Parameters:
selector- selector- Returns:
- true if tracked
-
add
Adds a selector. If an already added selector is provided, functions the same asget(PermSelector).- Parameters:
selector- selector- Returns:
- the selector perms for immediate editing
-
remove
Removes a selector.- Parameters:
selector- selector to remove
-
clear
void clear()Clears everything.
-