Package net.luckperms.api.query
Interface OptionKey<T>
- Type Parameters:
T- the option type
Represents a key for a custom option defined in
QueryOptions.
It is intended that OptionKeys are created and defined as follows.
public static final OptionKey<String> SPECIAL_OPTION = OptionKey.of("special", String.class);
-
Method Summary
-
Method Details
-
of
Creates a newNodeMetadataKeyfor the given name and type.Note that the returned key implements object reference equality.
- Type Parameters:
T- the type parameter- Parameters:
name- the nametype- the type- Returns:
- the key
-
name
Gets a name describing the key type.- Returns:
- the key name
-
type
Gets the type of the key- Returns:
- the type
-