Class FlectonePulseAPI

java.lang.Object
net.flectone.pulse.FlectonePulseAPI

public class FlectonePulseAPI extends Object
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 Details

    • FlectonePulseAPI

      @Inject public FlectonePulseAPI(FlectonePulse instance)
      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

      public void reload() throws ReloadException
      Reloads the plugin configuration and modules at runtime.
      Throws:
      ReloadException - if any error occurs during reload process
    • getInstance

      public static FlectonePulse 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.