2012-08-05 05:45:31 +00:00
|
|
|
package net.minecraftforge.classloading;
|
|
|
|
|
2013-08-28 03:03:33 +00:00
|
|
|
import java.io.File;
|
2012-08-05 05:45:31 +00:00
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
import cpw.mods.fml.relauncher.IFMLLoadingPlugin;
|
|
|
|
|
|
|
|
public class FMLForgePlugin implements IFMLLoadingPlugin
|
|
|
|
{
|
2013-03-13 01:42:43 +00:00
|
|
|
public static boolean RUNTIME_DEOBF = false;
|
2013-08-28 03:03:33 +00:00
|
|
|
public static File forgeLocation;
|
2013-03-13 01:42:43 +00:00
|
|
|
|
2012-08-05 05:45:31 +00:00
|
|
|
@Override
|
|
|
|
public String[] getLibraryRequestClass()
|
|
|
|
{
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String[] getASMTransformerClass()
|
|
|
|
{
|
|
|
|
return new String[]{
|
|
|
|
"net.minecraftforge.transformers.ForgeAccessTransformer",
|
|
|
|
"net.minecraftforge.transformers.EventTransformer"
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getModContainerClass()
|
|
|
|
{
|
|
|
|
return "net.minecraftforge.common.ForgeDummyContainer";
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getSetupClass()
|
|
|
|
{
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void injectData(Map<String, Object> data)
|
|
|
|
{
|
2013-03-13 01:42:43 +00:00
|
|
|
RUNTIME_DEOBF = (Boolean)data.get("runtimeDeobfuscationEnabled");
|
2013-08-28 03:03:33 +00:00
|
|
|
forgeLocation = (File)data.get("coremodLocation");
|
2012-08-05 05:45:31 +00:00
|
|
|
}
|
|
|
|
}
|