0
This repository has been archived on 2024-08-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ModuleLoader/src/com/redstoner/modules/CoreModule.java

30 lines
815 B
Java

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 = 1, minor = 0, revision = 1, compatible = -1)
public interface CoreModule extends Module
{
/** Core modules should always be enabled. */
@Override
public default boolean enabled()
{
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()
{}
}