Class Addon

java.lang.Object
me.hsgamer.hscore.addon.object.Addon
All Implemented Interfaces:
Expansion, DataFolder, GetClassLoader

public abstract class Addon extends Object implements Expansion, DataFolder, GetClassLoader
The main class of the addon
  • Constructor Details

    • Addon

      public Addon()
  • Method Details

    • onPostEnable

      public void onPostEnable()
      Called after all addons enabled
    • onReload

      public void onReload()
      Called when reloading
    • getDescription

      @NotNull public final @NotNull AddonDescription getDescription()
      Get the addon's description
      Returns:
      the description
    • getDataFolder

      @NotNull public final @NotNull File getDataFolder()
      Get the addon's folder
      Specified by:
      getDataFolder in interface DataFolder
      Returns:
      the directory for the addon
    • getLogger

      public final Logger getLogger()
      Get the addon's logger
      Returns:
      the logger