Class SerializedPluginDescription.Dependency
java.lang.Object
com.velocitypowered.api.plugin.ap.SerializedPluginDescription.Dependency
- Enclosing class:
SerializedPluginDescription
Represents a dependency.
-
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
-