Updated to implement default onEnable/onDisable
This commit is contained in:
parent
3851c60306
commit
fb5e6fa10b
@ -7,7 +7,7 @@ import com.redstoner.annotations.Version;
|
|||||||
* Examples are the ModuleLoader and the Debugger.
|
* Examples are the ModuleLoader and the Debugger.
|
||||||
*
|
*
|
||||||
* @author Pepich */
|
* @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
|
public interface CoreModule extends Module
|
||||||
{
|
{
|
||||||
/** Core modules should always be enabled. */
|
/** Core modules should always be enabled. */
|
||||||
@ -16,4 +16,14 @@ public interface CoreModule extends Module
|
|||||||
{
|
{
|
||||||
return true;
|
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()
|
||||||
|
{}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user