Class ExtensionInfo
java.lang.Object
com.booksaw.betterTeams.extension.ExtensionInfo
Holds all the metadata for a BetterTeams extension, loaded from its
extension.yml file.-
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanstatic ExtensionInfoLoads and parses anextension.ymlfile from a given JAR file and constructs a newExtensionInfoobject.The author(s) of the extension.A brief description of what the extension does.Provides a user-friendly string representation of the extension.A list of other BetterTeams extensions that this extension *requires* to load (hard dependency).A list of other BetterTeams extensions that this extension can optionally hook into (soft dependency).The file handle for the extension's JAR file.The fully qualified class path to the extension's main class.getName()The unique name of the extension.A list of Bukkit plugins that this extension *requires* to load (hard dependency).A list of Bukkit plugins that this extension can optionally hook into (soft dependency).The version of the extension.The official website for the extension.inthashCode()toString()
-
Method Details
-
getDisplayName
Provides a user-friendly string representation of the extension.- Returns:
- A formatted string
-
fromYaml
Loads and parses anextension.ymlfile from a given JAR file and constructs a newExtensionInfoobject.- Parameters:
file- The extension's JAR file.- Returns:
- A fully populated
ExtensionInfoobject. - Throws:
IOException
-
getName
The unique name of the extension. -
getMainClass
The fully qualified class path to the extension's main class. -
getVersion
The version of the extension. -
getAuthor
The author(s) of the extension. -
getDescription
A brief description of what the extension does. -
getWebsite
The official website for the extension. -
getExtensionDepend
A list of other BetterTeams extensions that this extension *requires* to load (hard dependency). -
getExtensionSoftDepend
A list of other BetterTeams extensions that this extension can optionally hook into (soft dependency). -
getPluginDepend
A list of Bukkit plugins that this extension *requires* to load (hard dependency). -
getPluginSoftDepend
A list of Bukkit plugins that this extension can optionally hook into (soft dependency). -
getJarFile
The file handle for the extension's JAR file. -
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-