Package net.luckperms.api.node.metadata
Interface NodeMetadataKey<T>
- Type Parameters:
T- the metadata type
Represents a key for a specific type of node metadata.
It is intended that NodeMetadataKeys are obtained and stored as
follows.
public static final NodeMetadataKey<SpecialMetadata> SPECIAL_METADATA_KEY = NodeMetadataKey.of("specialmetadata", SpecialMetadata.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
-