Class FactionSelector
java.lang.Object
dev.kitteh.factions.permissible.selector.AbstractSelector
dev.kitteh.factions.permissible.selector.FactionSelector
- 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 -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.kyori.adventure.text.ComponentdisplayValue(Faction context) Gets the value of this selector for display in chat.booleaninthashCode()Serializes the value of this selector for storage.booleantest(Selectable selectable, Faction faction) Tests if the given selectable matches this selector.Methods inherited from class dev.kitteh.factions.permissible.selector.AbstractSelector
descriptor, 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
-
NAME
- See Also:
-
DESCRIPTOR
-
-
Constructor Details
-
FactionSelector
-
-
Method Details
-
test
Description copied from interface:PermSelectorTests if the given selectable matches this selector.- Parameters:
selectable- selectablefaction- faction context- Returns:
- true if matches
-
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
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractSelector
-
equals
- Overrides:
equalsin classAbstractSelector
-