EnumeratorPlugin.java
1.28 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
package com.mumfrey.liteloader.api;
import java.util.List;
import com.mumfrey.liteloader.interfaces.LoadableMod;
import com.mumfrey.liteloader.launch.LoaderEnvironment;
import com.mumfrey.liteloader.launch.LoaderProperties;
/**
* LiteLoader Extensible API - Interface for objects which can interact with the enumeration process, not yet available to APIs
*
* @author Adam Mummery-Smith
*/
public interface EnumeratorPlugin
{
/**
* Initialise this plugin
*/
public abstract void init(LoaderEnvironment environment, LoaderProperties properties);
/**
* Get classes in the supplied container
*
* @param container Container to inspect
* @param classloader ClassLoader for this container
* @param superClass Superclass the class must implement
* @param supportedPrefixes Registered class prefixes
* @return
*/
public abstract <T> List<Class<? extends T>> getClasses(LoadableMod<?> container, ClassLoader classloader, ModClassValidator validator);
public abstract boolean checkEnabled(ContainerRegistry containers, LoadableMod<?> container);
public abstract boolean checkDependencies(ContainerRegistry containers, LoadableMod<?> base);
public abstract boolean checkAPIRequirements(ContainerRegistry containers, LoadableMod<?> container);
}