BiomesOPlenty/common/biomesoplenty/asm/BOPFMLLoadingPlugin.java
2013-11-19 19:55:48 +11:00

57 lines
1.2 KiB
Java

package biomesoplenty.asm;
import java.io.File;
import java.util.Map;
import codechicken.core.launch.DepLoader;
import cpw.mods.fml.relauncher.FMLLaunchHandler;
import cpw.mods.fml.relauncher.IFMLLoadingPlugin;
import cpw.mods.fml.relauncher.IFMLLoadingPlugin.TransformerExclusions;
@TransformerExclusions({ "biomesoplenty.asm" })
public class BOPFMLLoadingPlugin implements IFMLLoadingPlugin
{
private static String SIDE = FMLLaunchHandler.side().name();
public BOPFMLLoadingPlugin()
{
DepLoader.load();
}
public static File location;
@Override
public String[] getLibraryRequestClass()
{
return null;
}
@Override
public String[] getASMTransformerClass()
{
if (SIDE.equals("CLIENT"))
{
return new String[] {BOPBiomeColourBlending.class.getName()};
}
return null;
}
@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");
}
}