blob: 77ca178dd0988d4b53dbb00f8ff9b5720585322d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package com.redstoner.modules;
import com.redstoner.annotations.Version;
/**
* This class shall be used for "CoreModules", which are acting on a lower level than modules and are also exempted from being disabled or reloaded on the go.</br>
* Please note that CoreModules will not be known to the ModuleLoader itself!</br>
* Examples are the ModuleLoader and the Debugger.
*
* @author Pepich
*/
@Version (major = 2, minor = 0, revision = 0, compatible = -1)
public interface CoreModule extends Module {
/** Core modules don't need to be enabled. */
@Override
public default boolean onEnable() {
return true;
}
/** Core modules don't need to be disabled. */
@Override
public default void onDisable() {}
}
|