AddonLoader

class AddonLoader(plugin: JavaPlugin, api: FoundryAPI)

Finds addon JARs, checks their descriptors, and starts their main classes.

Constructors

Link copied to clipboard
constructor(plugin: JavaPlugin, api: FoundryAPI)

Functions

Link copied to clipboard

Calls the shutdown callback for each loaded addon and closes its class loader.

Link copied to clipboard

Returns the loaded addon with id, or null if it was not loaded.

Link copied to clipboard

Returns the loaded addons in load order.

Link copied to clipboard

Loads each JAR directly inside the Foundry packs folder.