Class GalaxiEngine

java.lang.Object
net.ME1312.Galaxi.Galaxi
net.ME1312.Galaxi.Engine.GalaxiEngine

public abstract class GalaxiEngine extends Galaxi
GalaxiEngine Main Class
  • Constructor Details

    • GalaxiEngine

      public GalaxiEngine()
  • Method Details

    • init

      public static GalaxiEngine init(Object app) throws Exception
      Initialize the Galaxi Engine
      Parameters:
      app - Main class object of the app (annotated with @App/@Plugin)
      Returns:
      The GalaxiEngine
      Throws:
      Exception
      See Also:
    • init

      public static GalaxiEngine init(PluginInfo app) throws Exception
      Initialize the Galaxi Engine
      Parameters:
      app - PluginInfo for the app
      Returns:
      The GalaxiEngine
      Throws:
      Exception
    • getInstance

      public static GalaxiEngine getInstance()
      Get the GalaxiEngine
      Returns:
      The GalaxiEngine
    • start

      public void start()
      Start the GalaxiEngine
    • start

      public abstract void start(Runnable callback)
      Start the GalaxiEngine
      Parameters:
      callback - Callback for when Galaxi is stopped
    • stop

      public void stop()
      Stop the GalaxiEngine
    • stop

      public abstract void stop(int code)
      Stop the GalaxiEngine
      Parameters:
      code - Exit Code
    • terminate

      public abstract void terminate(int code)
      Force stop the GalaxiEngine
      Parameters:
      code - Exit Code
    • setConsole

      public void setConsole(ConsoleCommandSender sender)
      Override the Console Sender
      Parameters:
      sender - Console Command Sender
    • getConsole

      public ConsoleCommandSender getConsole()
      Description copied from class: Galaxi
      Get the Console Sender
      Specified by:
      getConsole in class Galaxi
      Returns:
      Console Command Sender
    • getCommandProcessor

      public abstract CommandParser getCommandProcessor()
      Description copied from class: Galaxi
      Get the Command Processor
      Specified by:
      getCommandProcessor in class Galaxi
      Returns:
      Command Processor
    • getPluginManager

      public abstract CodeManager getPluginManager()
      Description copied from class: Galaxi
      Get the Plugin Manager
      Specified by:
      getPluginManager in class Galaxi
      Returns:
      Plugin Manager