Package com.velocitypowered.api.plugin
Interface PluginDescription
public interface PluginDescription
Represents metadata for a specific version of a plugin.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGets the authors of thePluginwithin this container.default Collection<PluginDependency>Gets aCollectionof all dependencies of thePluginwithin this container.default Optional<PluginDependency>getDependency(String id) Gets the description of thePluginwithin this container.getId()Gets the qualified ID of thePluginwithin this container.getName()Gets the name of thePluginwithin this container.Returns the source the plugin was loaded from.getUrl()Gets the url or website of thePluginwithin this container.Gets the version of thePluginwithin this container.
-
Field Details
-
ID_PATTERN
The pattern plugin IDs must match. Plugin IDs may only contain alphanumeric characters, dashes or underscores, must start with an alphabetic character and cannot be longer than 64 characters.
-
-
Method Details
-
getId
String getId()Gets the qualified ID of thePluginwithin this container.- Returns:
- the plugin ID
- See Also:
-
getName
Gets the name of thePluginwithin this container.- Returns:
- an
Optionalwith the plugin name, may be empty - See Also:
-
getVersion
Gets the version of thePluginwithin this container.- Returns:
- an
Optionalwith the plugin version, may be empty - See Also:
-
getDescription
Gets the description of thePluginwithin this container.- Returns:
- an
Optionalwith the plugin description, may be empty - See Also:
-
getUrl
Gets the url or website of thePluginwithin this container.- Returns:
- an
Optionalwith the plugin url, may be empty - See Also:
-
getAuthors
Gets the authors of thePluginwithin this container.- Returns:
- the plugin authors, may be empty
- See Also:
-
getDependencies
Gets aCollectionof all dependencies of thePluginwithin this container.- Returns:
- the plugin dependencies, can be empty
- See Also:
-
getDependency
-
getSource
Returns the source the plugin was loaded from.- Returns:
- the source the plugin was loaded from or
Optional.empty()if unknown
-