/
IModPlugin.java
40 lines (34 loc) · 1.19 KB
/
IModPlugin.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package mezz.jei.api;
/**
* The main class for a plugin. Everything communicated between a mod and JEI is through this class.
* IModPlugins must have the @JEIPlugin annotation to get loaded by JEI.
* This class must not import anything that could be missing at runtime (i.e. code from any other mod).
*/
public interface IModPlugin {
/**
* Returns true if this plugin's mod is loaded.
*
* @deprecated handle this in register, if the mod isn't loaded then don't register anything.
*/
@Deprecated
boolean isModLoaded();
/**
* Called when the IJeiHelpers is available.
* IModPlugins should store IJeiHelpers here if they need it.
*/
void onJeiHelpersAvailable(IJeiHelpers jeiHelpers);
/**
* Called when the IItemRegistry is available, before register.
*/
void onItemRegistryAvailable(IItemRegistry itemRegistry);
/**
* Register this mod plugin with the mod registry.
* Called just before the game launches.
* Will be called again if config
*/
void register(IModRegistry registry);
/**
* Called when the IRecipeRegistry is available, after all mods have registered.
*/
void onRecipeRegistryAvailable(IRecipeRegistry recipeRegistry);
}