Class SerializedPluginDescription.Dependency
java.lang.Object
com.velocitypowered.api.plugin.ap.SerializedPluginDescription.Dependency
- Enclosing class:
SerializedPluginDescription
Represents a dependency declared by a plugin.
A dependency consists of an identifier (typically the plugin ID) and a flag indicating whether the dependency is optional. Required dependencies must be present for the plugin to load, whereas optional dependencies may or may not be available at runtime.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Dependency
Constructs a new dependency class.- Parameters:
id- the ID of the dependent pluginoptional- whether the dependency is optional
-
-
Method Details
-
getId
Gets the ID of the plugin this dependency refers to.- Returns:
- the plugin ID
-
isOptional
public boolean isOptional()Indicates whether this dependency is optional.Optional dependencies are not required for the plugin to load.
- Returns:
trueif the dependency is optional;falseotherwise
-
equals
-
hashCode
public int hashCode() -
toString
-