Class FlectonePulseAPI
java.lang.Object
net.flectone.pulse.FlectonePulseAPI
API entry point for FlectonePulse plugin integration.
Provides static access to the main
FlectonePulse instance and lifecycle management.- Since:
- 0.1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFlectonePulseAPI(FlectonePulse instance) Constructs the API wrapper with dependency injection. -
Method Summary
Modifier and TypeMethodDescriptionstatic FlectonePulseThe main instance of the FlectonePulse.static booleanIndicates whether FlectonePulse is currently in the process of being disabled.voidShuts down the FlectonePulse .voidonEnable()Initializes and enables the FlectonePulse .voidreload()Reloads the plugin configuration and modules at runtime.
-
Constructor Details
-
FlectonePulseAPI
Constructs the API wrapper with dependency injection. This constructor is called internally by Google Guice.- Parameters:
instance- the main FlectonePulse implementation instance
-
-
Method Details
-
onEnable
public void onEnable()Initializes and enables the FlectonePulse . Called automatically by the platform on enable.- Throws:
IllegalStateException- if called when is already enabled
-
onDisable
public void onDisable()Shuts down the FlectonePulse . Called automatically by the platform on disable. -
reload
Reloads the plugin configuration and modules at runtime.- Throws:
ReloadException- if any error occurs during reload process
-
getInstance
The main instance of the FlectonePulse. Provides access to dependency injection and functionality.- See Also:
-
isDisabling
public static boolean isDisabling()Indicates whether FlectonePulse is currently in the process of being disabled.
-