32 lines
617 B
Java
32 lines
617 B
Java
package forestry.api.core;
|
|
|
|
/**
|
|
* Optional way to hook into Forestry.
|
|
*
|
|
* Plugin classes can reside in any package, their class name however has to start with 'Plugin', i.e. 'PluginMyStuff'.
|
|
*
|
|
* @author SirSengir
|
|
*/
|
|
public interface IPlugin {
|
|
|
|
/**
|
|
* @return true if the plugin is to be loaded.
|
|
*/
|
|
public boolean isAvailable();
|
|
|
|
/**
|
|
* Called during Forestry's @PreInit.
|
|
*/
|
|
public void preInit();
|
|
|
|
/**
|
|
* Called at the start of Forestry's @PostInit.
|
|
*/
|
|
public void doInit();
|
|
|
|
/**
|
|
* Called at the end of Forestry's @PostInit.
|
|
*/
|
|
public void postInit();
|
|
|
|
}
|