Class SerializedPluginDescription
java.lang.Object
com.velocitypowered.api.plugin.ap.SerializedPluginDescription
Serialized version of
PluginDescription.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents a dependency. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the list of authors who contributed to the plugin.Gets the list of declared dependencies for the plugin.@Nullable StringGets the plugin's description, typically a short summary of its functionality.getId()Gets the ID of the plugin this dependency refers to.getMain()Gets the fully qualified name of the plugin's main class.@Nullable StringgetName()Gets the human-readable name of the plugin.@Nullable StringgetUrl()Gets the website URL for the plugin.@Nullable StringGets the version string of the plugin.inthashCode()toString()
-
Field Details
-
ID_PATTERN_STRING
The string pattern used to validate plugin IDs.Plugin IDs must start with a lowercase letter and may contain lowercase letters, digits, hyphens, and underscores. The total length must not exceed 64 characters.
- See Also:
-
ID_PATTERN
The compiled pattern used to validate plugin IDs.Plugin IDs must start with a lowercase letter and may contain lowercase letters, digits, hyphens, and underscores. The total length must not exceed 64 characters.
-
-
Method Details
-
getId
Gets the ID of the plugin this dependency refers to.- Returns:
- the plugin ID
-
getName
Gets the human-readable name of the plugin.- Returns:
- the plugin's name, or
nullif not specified
-
getVersion
Gets the version string of the plugin.- Returns:
- the plugin version, or
nullif not specified
-
getDescription
Gets the plugin's description, typically a short summary of its functionality.- Returns:
- the description, or
nullif not specified
-
getUrl
Gets the website URL for the plugin.This is often used to link to documentation, support, or the plugin's homepage.
- Returns:
- the plugin URL, or
nullif not specified
-
getAuthors
Gets the list of authors who contributed to the plugin.- Returns:
- an immutable list of authors; empty if none were specified
-
getDependencies
Gets the list of declared dependencies for the plugin.Dependencies may be required or optional and describe other plugins, this one depends.
- Returns:
- an immutable list of plugin dependencies
-
getMain
Gets the fully qualified name of the plugin's main class.- Returns:
- the main class name
-
equals
-
hashCode
public int hashCode() -
toString
-