Class AddonManager

  • All Implemented Interfaces:
    io.github.projectunified.minelib.plugin.base.Loadable, io.github.projectunified.minelib.plugin.postenable.PostEnable

    public class AddonManager
    extends me.hsgamer.hscore.expansion.common.ExpansionManager
    implements io.github.projectunified.minelib.plugin.base.Loadable, io.github.projectunified.minelib.plugin.postenable.PostEnable
    • Field Summary

      • Fields inherited from class me.hsgamer.hscore.expansion.common.ExpansionManager

        classLoaders, DEFAULT_EXPANSION_FACTORY
    • Constructor Detail

      • AddonManager

        public AddonManager​(BetterGUI plugin)
    • Method Detail

      • getAuthors

        @NotNull
        public static @NotNull List<@NotNull String> getAuthors​(@NotNull
                                                                @NotNull me.hsgamer.hscore.expansion.common.ExpansionClassLoader loader)
        Get the authors of the loader
        Parameters:
        loader - the loader
        Returns:
        the authors
      • getDescription

        @NotNull
        public static @NotNull String getDescription​(@NotNull
                                                     @NotNull me.hsgamer.hscore.expansion.common.ExpansionClassLoader loader)
        Get the description of the loader
        Parameters:
        loader - the loader
        Returns:
        the description
      • getExpansionCount

        public Map<String,​Integer> getExpansionCount()
        Get expansion count
        Returns:
        the expansion count
      • getPlugin

        public BetterGUI getPlugin()
        Get the plugin
        Returns:
        the plugin
      • enable

        public void enable()
        Specified by:
        enable in interface io.github.projectunified.minelib.plugin.base.Loadable
      • postEnable

        public void postEnable()
        Specified by:
        postEnable in interface io.github.projectunified.minelib.plugin.postenable.PostEnable
      • disable

        public void disable()
        Specified by:
        disable in interface io.github.projectunified.minelib.plugin.base.Loadable