Package com.ryandw11.structure
Class AddonHandler
java.lang.Object
com.ryandw11.structure.AddonHandler
This class is responsible for handling addons to the plugin.
Use CustomStructuresAPI.registerCustomAddon(CustomStructureAddon)
to
register an addon.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the list of addons.void
Handles re-registering items from addons when the plugin is reloaded.void
registerAddon(CustomStructureAddon addon)
Register a custom addon.
-
Constructor Details
-
AddonHandler
protected AddonHandler()Internal use only. Access the existing instance of this class from
CustomStructures.getAddonHandler()
.
-
-
Method Details
-
getCustomStructureAddons
Get the list of addons.- Returns:
- The list of addons.
-
registerAddon
Register a custom addon.- Parameters:
addon
- The addon to register.
-
handlePluginReload
public void handlePluginReload()Handles re-registering items from addons when the plugin is reloaded.Internal Use Only.
-