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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
"Load" an Addon.void
reload()
Reload the AddonManager by stopping every Addon and reading them.void
startAddon
(Addon addon) Try starting an Addon by calling the Class with a URL-Class Loader.void
Start every Addon from the AddonList.void
Try stopping the Addon by calling the Main-Class methode onDisable.void
Stop 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.
-