/
Galaxi.java
73 lines (63 loc) · 1.64 KB
/
Galaxi.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
package net.ME1312.Galaxi;
import net.ME1312.Galaxi.Command.CommandProcessor;
import net.ME1312.Galaxi.Command.ConsoleCommandSender;
import net.ME1312.Galaxi.Library.UniversalFile;
import net.ME1312.Galaxi.Plugin.PluginInfo;
import net.ME1312.Galaxi.Plugin.PluginManager;
/**
* Galaxi API Class
*/
public abstract class Galaxi {
protected static Galaxi instance;
/**
* Gets the GalaxiEngine API Methods
*
* @return GalaxiEngine API
*/
public static Galaxi getInstance() {
if (instance == null) throw new IllegalStateException("Illegal call to getInstance() before engine initialization");
return instance;
}
/**
* Get the Console Sender
*
* @return Console Command Sender
*/
public abstract ConsoleCommandSender getConsole();
/**
* Get the Command Processor
*
* @return Command Processor
*/
public abstract CommandProcessor getCommandProcessor();
/**
* Get the Plugin Manager
*
* @return Plugin Manager
*/
public abstract PluginManager getPluginManager();
/**
* Gets the Runtime Directory
*
* @return Runtime Directory
*/
public abstract UniversalFile getRuntimeDirectory();
/**
* Gets the AppData Directory
*
* @return AppData Directory
*/
public abstract UniversalFile getAppDataDirectory();
/**
* Gets the Galaxi Engine Info
*
* @return Galaxi Engine Info
*/
public abstract PluginInfo getAppInfo();
/**
* Gets the Galaxi Engine Info
*
* @return Galaxi Engine Info
*/
public abstract PluginInfo getEngineInfo();
}