Package net.ME1312.Galaxi.Engine
Class GalaxiEngine
java.lang.Object
net.ME1312.Galaxi.Galaxi
net.ME1312.Galaxi.Engine.GalaxiEngine
GalaxiEngine Main Class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract CommandParser
Get the Command ProcessorGet the Console Senderstatic GalaxiEngine
Get the GalaxiEngineabstract CodeManager
Get the Plugin Managerstatic GalaxiEngine
Initialize the Galaxi Enginestatic GalaxiEngine
init
(PluginInfo app) Initialize the Galaxi Enginevoid
setConsole
(ConsoleCommandSender sender) Override the Console Sendervoid
start()
Start the GalaxiEngineabstract void
Start the GalaxiEnginevoid
stop()
Stop the GalaxiEngineabstract void
stop
(int code) Stop the GalaxiEngineabstract void
terminate
(int code) Force stop the GalaxiEngineMethods inherited from class net.ME1312.Galaxi.Galaxi
getAppDataDirectory, getAppInfo, getEngineInfo, getRuntimeDirectory
-
Constructor Details
-
GalaxiEngine
public GalaxiEngine()
-
-
Method Details
-
init
Initialize the Galaxi Engine -
init
Initialize the Galaxi Engine- Parameters:
app
- PluginInfo for the app- Returns:
- The GalaxiEngine
- Throws:
Exception
-
getInstance
Get the GalaxiEngine- Returns:
- The GalaxiEngine
-
start
public void start()Start the GalaxiEngine -
start
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
Override the Console Sender- Parameters:
sender
- Console Command Sender
-
getConsole
Description copied from class:Galaxi
Get the Console Sender- Specified by:
getConsole
in classGalaxi
- Returns:
- Console Command Sender
-
getCommandProcessor
Description copied from class:Galaxi
Get the Command Processor- Specified by:
getCommandProcessor
in classGalaxi
- Returns:
- Command Processor
-
getPluginManager
Description copied from class:Galaxi
Get the Plugin Manager- Specified by:
getPluginManager
in classGalaxi
- Returns:
- Plugin Manager
-