0

Updated to implement default onEnable/onDisable

This commit is contained in:
Pepich 2017-02-02 20:41:15 +01:00
parent 3851c60306
commit fb5e6fa10b

View File

@ -7,7 +7,7 @@ import com.redstoner.annotations.Version;
* Examples are the ModuleLoader and the Debugger.
*
* @author Pepich */
@Version(major = 1, minor = 0, revision = 0, compatible = -1)
@Version(major = 1, minor = 0, revision = 1, compatible = -1)
public interface CoreModule extends Module
{
/** Core modules should always be enabled. */
@ -16,4 +16,14 @@ public interface CoreModule extends Module
{
return true;
}
/** Core modules don't need to be enabled. */
@Override
public default void onEnable()
{}
/** Core modules don't need to be disabled. */
@Override
public default void onDisable()
{}
}