Interface Toggleable

All Superinterfaces:
ShutDownable, Startable
All Known Subinterfaces:
CodingPrompter, DisguiseManager, DownloadManager, Economy, ModuleManager, PacketManager, PlanetsManager
All Known Implementing Classes:
DisabledCodingPrompter, DisabledDisguises, DisabledDownloader, DisabledEconomy, DisabledPacketManager, Downloader, GeminiPrompter, LibsDisguises, Moduler, OpenAIPrompter, OpenRouterPrompter, PacketEventsManager, PhysicsManager, ProtocolLibManager, Space, VaultEconomy, Watchdog, WorldEditManager

public interface Toggleable extends Startable, ShutDownable

Toggleable

Represents a manager, that can be started and shut downed, so it has a working state.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks whether manager was started successfully and it currently works.

    Methods inherited from interface ShutDownable

    shutdown
    Modifier and Type
    Method
    Description
    void
    Does tasks on shutdown.

    Methods inherited from interface Startable

    start
    Modifier and Type
    Method
    Description
    void
    Does tasks on start.
  • Method Details

    • isWorking

      boolean isWorking()
      Checks whether manager was started successfully and it currently works.
      Returns:
      true - started up, false - shut downed.