Class PluginDependency
java.lang.Object
eu.hexagonmc.spigot.annotation.meta.PluginDependency
Represents a plugin dependency.
The
name specifies the plugin to depend on.
The type specifies the if the dependency is required, optionally
or should be loaded after the current plugin.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic PluginDependencyfrom(Dependency annotation) Creates dependency from an annotation.getName()The name of this dependency.getType()The type of this dependency.inthashCode()voidSets the name of this dependency.voidsetType(DependencyType type) Sets the type of this dependency.toString()
-
Constructor Details
-
PluginDependency
Creates a new dependency from a plugin name.- Parameters:
name- The name of the plugin to depend on
-
-
Method Details
-
from
Creates dependency from an annotation. Parses the data stored in the annotation.- Parameters:
annotation- The annotation to parse for data- Returns:
- The new dependency
- See Also:
-
getName
The name of this dependency.- Returns:
- The name
-
setName
Sets the name of this dependency.- Parameters:
name- The name to set
-
getType
The type of this dependency.- Returns:
- The type
- See Also:
-
setType
Sets the type of this dependency.- Parameters:
type- The type to set
-
toString
-
hashCode
public int hashCode() -
equals
-