Package de.presti.ree6.addons
Class AddonManager
java.lang.Object
de.presti.ree6.addons.AddonManager
The AddonManager has been created to save every Addon in a List to keep track of them
and to unload them if wanted/needed.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid"Load" an Addon.voidreload()Reload the AddonManager by stopping every Addon and reading them.voidstartAddon(Addon addon) Try starting an Addon by calling the Class with a URL-Class Loader.voidStart every Addon from the AddonList.voidTry stopping the Addon by calling the Main-Class methode onDisable.voidStop every Addon.
-
Field Details
-
addons
The actual List with the Addons.
-
-
Constructor Details
-
AddonManager
public AddonManager()
-
-
Method Details
-
reload
public void reload()Reload the AddonManager by stopping every Addon and reading them. -
startAddon
Try starting an Addon by calling the Class with a URL-Class Loader.- Parameters:
addon- the Local-Addon.
-
startAddons
public void startAddons()Start every Addon from the AddonList. -
stopAddon
Try stopping the Addon by calling the Main-Class methode onDisable.- Parameters:
addon- The Local-Addon.
-
stopAddons
public void stopAddons()Stop every Addon. -
loadAddon
"Load" an Addon.- Parameters:
addon- the Local-Addon.
-