Package net.luckperms.api.query.meta
Interface MetaValueSelector
-
public interface MetaValueSelectorA function that selects themeta valueto be used in queries against a givenmeta key.- Since:
- 5.1
-
-
Field Summary
Fields Modifier and Type Field Description static OptionKey<MetaValueSelector>KEYTheOptionKeyforMetaValueSelector.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NonNull StringselectValue(@NonNull String key, @NonNull List<String> values)Selects the meta value to map to the given key.
-
-
-
Field Detail
-
KEY
static final OptionKey<MetaValueSelector> KEY
TheOptionKeyforMetaValueSelector.
-
-
Method Detail
-
selectValue
@NonNull String selectValue(@NonNull String key, @NonNull List<String> values)
Selects the meta value to map to the given key.The
valueslist is guaranteed to contain at least 1 element.- Parameters:
key- the keyvalues- the values, in the order in which they were accumulated.- Returns:
- the selected value
-
-