blob: 6a8e8c085d4f173ffefb3dcffb9be32b0f65936a (
plain)
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
|
package gtPlusPlus.api.interfaces;
import gtPlusPlus.api.objects.Logger;
public interface IPlugin {
/**
* @return A {@link String} object which returns the {@link IPlugin}'s name.
*/
public String getPluginName();
/**
* @return
* A {@link String} object which returns the {@link IPlugin}'s short name.
* This String should only contain 4 Characters.
*/
public String getPluginAbbreviation();
/**
* @param message - A {@link String} object which holds a message to be logged to console.
*/
default void log(String message) {
Logger.INFO("["+getPluginAbbreviation()+"] "+message);
}
public boolean preInit();
public boolean init();
public boolean postInit();
}
|