Package me.hsgamer.bettergui.manager
Class AddonManager
- java.lang.Object
-
- me.hsgamer.hscore.expansion.common.ExpansionManager
-
- me.hsgamer.bettergui.manager.AddonManager
-
- All Implemented Interfaces:
Loadable
,PostEnable
public class AddonManager extends ExpansionManager implements Loadable, PostEnable
-
-
Field Summary
-
Fields inherited from class me.hsgamer.hscore.expansion.common.ExpansionManager
classLoaders, DEFAULT_EXPANSION_FACTORY
-
-
Constructor Summary
Constructors Constructor Description AddonManager(BetterGUI plugin)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
disable()
void
enable()
static @NotNull List<@NotNull String>
getAuthors(@NotNull ExpansionClassLoader loader)
Get the authors of the loaderstatic @NotNull String
getDescription(@NotNull ExpansionClassLoader loader)
Get the description of the loaderMap<String,Integer>
getExpansionCount()
Get expansion countBetterGUI
getPlugin()
Get the pluginvoid
postEnable()
-
Methods inherited from class me.hsgamer.hscore.expansion.common.ExpansionManager
addStateListener, call, call, clearExpansions, disableExpansions, enableExpansions, getClassLoaders, getEnabledExpansions, getExpansion, getExpansionClassLoader, getExpansionsDir, getParentClassLoader, loadExpansions, removeStateListener, setExceptionHandler, setExpansionFactory, setSortAndFilterFunction
-
-
-
-
Constructor Detail
-
AddonManager
public AddonManager(BetterGUI plugin)
-
-
Method Detail
-
getAuthors
@NotNull public static @NotNull List<@NotNull String> getAuthors(@NotNull @NotNull ExpansionClassLoader loader)
Get the authors of the loader- Parameters:
loader
- the loader- Returns:
- the authors
-
getDescription
@NotNull public static @NotNull String getDescription(@NotNull @NotNull 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
-
postEnable
public void postEnable()
- Specified by:
postEnable
in interfacePostEnable
-
-