ModularEnumerator.java
1.04 KB
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
41
42
43
44
45
46
47
48
package com.mumfrey.liteloader.interfaces;
import java.io.File;
import com.mumfrey.liteloader.api.EnumeratorModule;
import com.mumfrey.liteloader.core.ModInfo;
/**
* Interface for the mod enumerator
*
* @author Adam Mummery-Smith
*/
public interface ModularEnumerator
{
/**
* Register a pluggable module into the enumerator
*
* @param module
*/
public abstract void registerModule(EnumeratorModule module);
/**
* @param container
*/
public abstract boolean registerModContainer(LoadableMod<?> container);
/**
* @param container
* @param reason
*/
public abstract void registerBadContainer(Loadable<?> container, String reason);
/**
* @param container
*/
public abstract boolean registerTweakContainer(TweakContainer<File> container);
/**
* @param container
* @param registerContainer
*/
public abstract void registerModsFrom(LoadableMod<?> container, boolean registerContainer);
/**
* @param mod
*/
public abstract void registerMod(ModInfo<LoadableMod<?>> mod);
}