Promotion background
Easter Season IS HERE!
10% off limited time offer!
Ends in
00
H
00
M
00
S
limited time offer SAVE 10% NOW →
Packages com.phoenixplugins.sdk.api plugin addons
com.phoenixplugins.sdk.api.plugin.addons

Interface AddonRegistry



  • public interface AddonRegistry
    Manages the lifecycle of addons, including loading, enabling, disabling, and unloading addons.
    • Method Summary

      Modifier and Type Method and Description
      <T extends Addon>
      T
      getAddon(Class<T> addonClazz)
      Retrieves an addon by its class type.
      Addon getAddon(String name)
      Retrieves an addon by its name.
      Plugin getPlugin()
      Gets the plugin that this addon manager is associated with.
      boolean initAddon(File file)
      Loads an addon from the given file.
      boolean isAddonEnabled(String name)
      Checks if an addon is currently enabled.
      void loadAddon(Addon addon)
      Enables a specific addon.
      void unloadAddon(Addon addon)
      Disables a specific addon.
      void unregisterAddon(Addon addon)
      Unloads a specific addon, removing it from memory.
    • Method Detail

      • getPlugin

        Plugin getPlugin()
        Gets the plugin that this addon manager is associated with.
        Returns:
        the JavaPlugin instance.
      • initAddon

        boolean initAddon(File file)
        Loads an addon from the given file.
        Parameters:
        file - the addon file to load.
        Returns:
        true if the addon was loaded successfully, false otherwise.
      • loadAddon

        void loadAddon(Addon addon)
        Enables a specific addon.
        Parameters:
        addon - the addon to enable.
      • unloadAddon

        void unloadAddon(Addon addon)
        Disables a specific addon.
        Parameters:
        addon - the addon to disable.
      • unregisterAddon

        void unregisterAddon(Addon addon)
                      throws IOException
        Unloads a specific addon, removing it from memory.
        Parameters:
        addon - the addon to unload.
        Throws:
        IOException
      • getAddon

        <T extends Addon> T getAddon(Class<T> addonClazz)
        Retrieves an addon by its class type.
        Type Parameters:
        T - the addon type.
        Parameters:
        addonClazz - the class type of the addon.
        Returns:
        the addon instance if found, otherwise null.
      • getAddon

        Addon getAddon(String name)
        Retrieves an addon by its name.
        Parameters:
        name - the name of the addon.
        Returns:
        the addon instance if found, otherwise null.
      • isAddonEnabled

        boolean isAddonEnabled(String name)
        Checks if an addon is currently enabled.
        Parameters:
        name - the name of the addon.
        Returns:
        true if the addon is enabled, false otherwise.
Last updated about 4 hours ago
My Cart (0 items)

Oops... looks like the spiders padded through here

Add products to your cart and remove them from here Lets buy
This site uses cookies to personalize content, enhance your experience. By continuing, you agree to our cookie use. Learn more