-
-
Notifications
You must be signed in to change notification settings - Fork 30
/
DenizenImplementation.java
68 lines (54 loc) · 1.71 KB
/
DenizenImplementation.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
package net.aufdemrand.denizencore;
import net.aufdemrand.denizencore.utilities.YamlConfiguration;
import java.io.File;
import java.util.List;
/**
* Interface representing all the information that an implementation must provide to the engine.
*/
public interface DenizenImplementation {
/**
* Return a list of all folders that the implementation has scripts within.
*/
public abstract File getScriptFolder();
/**
* Return the current version of the implementation.
* EG, "Gamey Game 1.0 Denizen 0.9"
*/
public abstract String getImplementationVersion();
/**
* Output a debug message to console.
*/
public abstract void debugMessage(String message);
/**
* Output an exception to console.
*/
public abstract void debugException(Throwable ex);
/**
* Output an error to console.
*/
public abstract void debugError(String error);
/**
* Output an 'Okay!' message.
*/
public abstract void debugApproval(String message);
/**
* Return the name of the implementation.
* EG, "Gamey Game".
*/
public abstract String getImplementationName();
/**
* Run any code that fires before a script reload goes through,
* EG, clearing custom data.
*/
public abstract void preScriptReload();
/**
* Run any code that fires after a script reload goes through,
* EG, running a public Reload event.
*/
public abstract void onScriptReload();
/**
* Temporary.
*/
public abstract void buildCoreContainers(YamlConfiguration yamlScripts);
public abstract List<YamlConfiguration> getOutsideScripts();
}