LoaderBootstrap.java
1.21 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.launch;
import java.util.List;
import net.minecraft.launchwrapper.LaunchClassLoader;
/**
* Interface for the loader bootstrap, this is loaded in the parent classloader
* for convenience otherwise it would be necessary to call the initialisation
* functions using reflection which just gets boring very quickly.
*
* @author Adam Mummery-Smith
*/
public interface LoaderBootstrap
{
/**
* Pre-init, perform mod file discovery and initial setup (eg. logger,
* properties)
*
* @param classLoader
* @param loadTweaks
* @param modsToLoad
*/
public abstract void preInit(LaunchClassLoader classLoader, boolean loadTweaks, List<String> modsToLoad);
/**
*
*/
public abstract void preBeginGame();
/**
* Init, create the loader instance and load mods
*/
public abstract void init();
/**
* Post-init, initialise loaded mods
*/
public abstract void postInit();
public abstract List<String> getRequiredTransformers();
public abstract List<String> getRequiredDownstreamTransformers();
public abstract LoaderEnvironment getEnvironment();
public abstract LoaderProperties getProperties();
}