Class UnknownSelector
java.lang.Object
dev.kitteh.factions.permissible.selector.AbstractSelector
dev.kitteh.factions.permissible.selector.UnknownSelector
- All Implemented Interfaces:
PermSelector
-
Nested Class Summary
Nested classes/interfaces inherited from class dev.kitteh.factions.permissible.selector.AbstractSelector
AbstractSelector.BasicDescriptorNested classes/interfaces inherited from interface dev.kitteh.factions.permissible.PermSelector
PermSelector.Descriptor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.kyori.adventure.text.ComponentdisplayValue(Faction context) Gets the value of this selector for display in chat.Serializes this selector for storage.Serializes the value of this selector for storage.booleantest(Selectable selectable, Faction faction) Tests if the given selectable matches this selector.text()Methods inherited from class dev.kitteh.factions.permissible.selector.AbstractSelector
descriptor, equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.kitteh.factions.permissible.PermSelector
displayName
-
Constructor Details
-
UnknownSelector
-
-
Method Details
-
text
-
test
Description copied from interface:PermSelectorTests if the given selectable matches this selector.- Parameters:
selectable- selectablefaction- faction context- Returns:
- true if matches
-
serialize
Description copied from interface:PermSelectorSerializes this selector for storage. Unlikely to need to override.- Returns:
- serialized selector
-
serializeValue
Description copied from interface:PermSelectorSerializes the value of this selector for storage.- Returns:
- serialized value
-
displayValue
Description copied from interface:PermSelectorGets the value of this selector for display in chat. Default is plain text without any decoration.- Parameters:
context- faction context- Returns:
- display value
-