Package net.luckperms.api.query.meta
Interface MetaValueSelector
public interface MetaValueSelector
A function that selects the
meta value to be used in queries
against a given meta key.- Since:
- 5.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final OptionKey<MetaValueSelector>TheOptionKeyforMetaValueSelector. -
Method Summary
-
Field Details
-
KEY
TheOptionKeyforMetaValueSelector.
-
-
Method Details
-
selectValue
@NonNull Result<String,MetaNode> selectValue(@NonNull String key, @NonNull List<? extends Result<String, MetaNode>> 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
-