2013-10-17 07:32:13 +00:00
|
|
|
package biomesoplenty.asm;
|
|
|
|
|
|
|
|
import java.io.File;
|
|
|
|
import java.util.Map;
|
|
|
|
|
2013-11-06 08:38:15 +00:00
|
|
|
import codechicken.core.launch.DepLoader;
|
2013-11-19 08:55:48 +00:00
|
|
|
import cpw.mods.fml.relauncher.FMLLaunchHandler;
|
2013-10-17 07:32:13 +00:00
|
|
|
import cpw.mods.fml.relauncher.IFMLLoadingPlugin;
|
2013-10-19 01:45:44 +00:00
|
|
|
import cpw.mods.fml.relauncher.IFMLLoadingPlugin.TransformerExclusions;
|
2013-10-17 07:32:13 +00:00
|
|
|
|
2013-10-19 01:45:44 +00:00
|
|
|
@TransformerExclusions({ "biomesoplenty.asm" })
|
2013-10-17 07:32:13 +00:00
|
|
|
public class BOPFMLLoadingPlugin implements IFMLLoadingPlugin
|
|
|
|
{
|
2013-11-19 08:55:48 +00:00
|
|
|
private static String SIDE = FMLLaunchHandler.side().name();
|
|
|
|
|
2013-11-06 08:38:15 +00:00
|
|
|
public BOPFMLLoadingPlugin()
|
|
|
|
{
|
|
|
|
DepLoader.load();
|
|
|
|
}
|
|
|
|
|
2013-10-17 07:32:13 +00:00
|
|
|
public static File location;
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String[] getLibraryRequestClass()
|
|
|
|
{
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String[] getASMTransformerClass()
|
|
|
|
{
|
2013-11-19 08:55:48 +00:00
|
|
|
if (SIDE.equals("CLIENT"))
|
|
|
|
{
|
|
|
|
return new String[] {BOPBiomeColourBlending.class.getName()};
|
|
|
|
}
|
|
|
|
|
|
|
|
return null;
|
2013-10-17 07:32:13 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getModContainerClass()
|
|
|
|
{
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getSetupClass()
|
|
|
|
{
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void injectData(Map<String, Object> data)
|
|
|
|
{
|
|
|
|
location = (File)data.get("coremodLocation");
|
|
|
|
}
|
|
|
|
}
|