- All Superinterfaces:
LifecycleObject
Represents a PhoenixPlugin that provides access to an EventBus.
This allows plugins to manage events dynamically.
-
Method Summary
Retrieves the AddonRegistry for this plugin.
Gets the command registry responsible for managing commands.
Gets the configuration provider responsible for handling configurations.
File
Gets the data folder associated with this plugin or proxy component.
Retrieves the plugin description
Retrieves the EventBus instance associated with this plugin.
Retrieves the ExtensionRegistry for this plugin.
Retrieves the HookRegistry for this plugin.
Gets the logger associated with this instance for logging messages.
String
Retrieves the plugin name
Gets the underlying platform the proxy or plugin is running on.
InputStream
Retrieves a resource as an input stream.
Gets the scheduler associated with this plugin for managing tasks.
Retrieves the TranslationsProvider for this plugin.
boolean
-
Method Details
-
-
getLogger
Gets the logger associated with this instance for logging messages.
- Returns:
- the
Logger instance
-
getScheduler
Gets the scheduler associated with this plugin for managing tasks.
- Returns:
- the
Scheduler instance
-
getEventBus
@NotNull
@NotNull EventBus getEventBus()
Retrieves the EventBus instance associated with this plugin.
The EventBus is responsible for handling event subscriptions and triggers.
- Returns:
- The EventBus instance.
-
getCommandManager
Gets the command registry responsible for managing commands.
- Returns:
- the
CommandManager instance
-
getAddonRegistry
Retrieves the AddonRegistry for this plugin.
The AddonRegistry is responsible for managing plugin addons dynamically.
It allows for loading and unloading addons as needed.
- Returns:
- The AddonsRegistry instance.
-
getExtensionRegistry
Retrieves the ExtensionRegistry for this plugin.
The ExtensionRegistry is responsible for managing plugin addons dynamically.
It allows for loading and unloading addons as needed.
- Returns:
- The AddonsRegistry instance.
-
getHookRegistry
Retrieves the HookRegistry for this plugin.
The HookRegistry is responsible for handling integrations with external plugins and services.
It allows registering and unregistering hooks dynamically.
- Returns:
- The HooksManager instance.
-
getTranslationsProvider
Retrieves the TranslationsProvider for this plugin.
TranslationsProvider is responsible for providing translations for different locales and manages language resources.
- Returns:
- The TranslationsProvider instance
-
getConfigurationProvider
Gets the configuration provider responsible for handling configurations.
- Returns:
- the
ConfigurationProvider instance
-
getName
String getName()
Retrieves the plugin name
- Returns:
- The Plugin name.
-
getDescription
Retrieves the plugin description
- Returns:
- The Plugin description.
-
getDataFolder
File getDataFolder()
Gets the data folder associated with this plugin or proxy component.
- Returns:
- the
File representing the data folder
-
getResource
InputStream getResource(String resourceName)
Retrieves a resource as an input stream.
- Parameters:
-
resourceName - the name of the resource to retrieve
- Returns:
- an
InputStream for the resource, or null if not found
-
isEnabled
boolean isEnabled()
-
Last updated about 1 month ago