Class ExtensionInfo

java.lang.Object
com.booksaw.betterTeams.extension.ExtensionInfo

public class ExtensionInfo extends Object
Holds all the metadata for a BetterTeams extension, loaded from its extension.yml file.
  • Method Details

    • getDisplayName

      public String getDisplayName()
      Provides a user-friendly string representation of the extension.
      Returns:
      A formatted string
    • fromYaml

      public static ExtensionInfo fromYaml(File file) throws IOException
      Loads and parses an extension.yml file from a given JAR file and constructs a new ExtensionInfo object.
      Parameters:
      file - The extension's JAR file.
      Returns:
      A fully populated ExtensionInfo object.
      Throws:
      IOException
    • getName

      public String getName()
      The unique name of the extension.
    • getMainClass

      public String getMainClass()
      The fully qualified class path to the extension's main class.
    • getVersion

      public String getVersion()
      The version of the extension.
    • getAuthor

      public String getAuthor()
      The author(s) of the extension.
    • getDescription

      public String getDescription()
      A brief description of what the extension does.
    • getWebsite

      public String getWebsite()
      The official website for the extension.
    • getExtensionDepend

      public List<String> getExtensionDepend()
      A list of other BetterTeams extensions that this extension *requires* to load (hard dependency).
    • getExtensionSoftDepend

      public List<String> getExtensionSoftDepend()
      A list of other BetterTeams extensions that this extension can optionally hook into (soft dependency).
    • getPluginDepend

      public List<String> getPluginDepend()
      A list of Bukkit plugins that this extension *requires* to load (hard dependency).
    • getPluginSoftDepend

      public List<String> getPluginSoftDepend()
      A list of Bukkit plugins that this extension can optionally hook into (soft dependency).
    • getJarFile

      public File getJarFile()
      The file handle for the extension's JAR file.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object