Class AbstractRelationSelector
java.lang.Object
dev.kitteh.factions.permissible.selector.AbstractSelector
dev.kitteh.factions.permissible.selector.AbstractRelationSelector
- All Implemented Interfaces:
PermSelector
- Direct Known Subclasses:
RelationAtLeastSelector,RelationAtMostSelector,RelationSingleSelector
@AvailableSince("4.0.0")
@NullMarked
public abstract class AbstractRelationSelector
extends AbstractSelector
-
Nested Class Summary
Nested ClassesNested 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 -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractRelationSelector(PermSelector.Descriptor descriptor, Relation relation) -
Method Summary
Modifier and TypeMethodDescriptionnet.kyori.adventure.text.ComponentdisplayValue(Faction context) Gets the value of this selector for display in chat.relation()Serializes the value of this selector for storage.abstract booleanfinal booleantest(Selectable selectable, Faction faction) Tests if the given selectable matches this selector.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, serialize
-
Field Details
-
relation
-
-
Constructor Details
-
AbstractRelationSelector
-
-
Method Details
-
relation
-
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
-
test
Description copied from interface:PermSelectorTests if the given selectable matches this selector.- Parameters:
selectable- selectablefaction- faction context- Returns:
- true if matches
-
test
-