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

Class Addon

  • java.lang.Object
    • com.phoenixplugins.sdk.api.plugin.addons.Addon
  • All Implemented Interfaces:
    LifecycleObject


    public abstract class Addon
    extends Object
    implements LifecycleObject
    Represents an addon that can be loaded, enabled, and disabled within the plugin system. Addons are modular components packaged as separate JAR files, allowing external functionality to be integrated into the plugin. Unlike extensions, which are built into the plugin, addons are managed dynamically by loading and unloading external resources at runtime.
    • Nested Class Summary

      Modifier and Type Class and Description
      class  Addon.Unsafe 
    • Constructor Summary

      Constructor and Description
      Addon() 
    • Method Summary

      Modifier and Type Method and Description
      File getDataFolder()
      Gets the data folder for this addon, where it can store its configuration files.
      String getName()
      Gets the name of this addon.
      abstract String getRequiredPluginVersion()
      Gets the required plugin version for this addon to function properly.
      InputStream getResource(String filename)
      Retrieves a resource file inside the addon's JAR.
      Addon.Unsafe unsafe() 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Addon

        public Addon()
    • Method Detail

      • getRequiredPluginVersion

        public abstract String getRequiredPluginVersion()
        Gets the required plugin version for this addon to function properly.
        Returns:
        the required version as a string.
      • getDataFolder

        public File getDataFolder()
        Gets the data folder for this addon, where it can store its configuration files.
        Returns:
        the data folder as a File.
      • getName

        public String getName()
        Gets the name of this addon.
        Returns:
        the name of the addon.
      • getResource

        public InputStream getResource(String filename)
        Retrieves a resource file inside the addon's JAR.
        Parameters:
        filename - the name of the resource file.
        Returns:
        an InputStream of the resource, or null if not found.
Last updated about 6 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