2014-02-11 09:39:15 +01:00
|
|
|
package appeng.transformer;
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
import appeng.core.AEConfig;
|
|
|
|
|
|
|
|
import com.google.common.eventbus.EventBus;
|
|
|
|
|
|
|
|
import cpw.mods.fml.common.DummyModContainer;
|
|
|
|
import cpw.mods.fml.common.LoadController;
|
|
|
|
import cpw.mods.fml.common.Mod.EventHandler;
|
|
|
|
import cpw.mods.fml.common.ModMetadata;
|
|
|
|
import cpw.mods.fml.common.event.FMLInitializationEvent;
|
|
|
|
import cpw.mods.fml.relauncher.FMLRelaunchLog;
|
|
|
|
import cpw.mods.fml.relauncher.IFMLLoadingPlugin;
|
|
|
|
import cpw.mods.fml.relauncher.IFMLLoadingPlugin.MCVersion;
|
|
|
|
|
|
|
|
@MCVersion("1.7.2")
|
|
|
|
public class AppEngCore extends DummyModContainer implements IFMLLoadingPlugin
|
|
|
|
{
|
|
|
|
|
2014-04-06 08:55:24 +02:00
|
|
|
public final AppEngCore instance;
|
2014-02-11 09:39:15 +01:00
|
|
|
|
2014-04-06 08:55:24 +02:00
|
|
|
protected final ModMetadata md = new ModMetadata();
|
2014-02-11 09:39:15 +01:00
|
|
|
|
|
|
|
public AppEngCore() {
|
2014-04-06 08:55:24 +02:00
|
|
|
instance = this;
|
2014-02-11 09:39:15 +01:00
|
|
|
FMLRelaunchLog.info( "[AppEng] Core Init" );
|
|
|
|
md.autogenerated = true;
|
|
|
|
md.credits = "AlgorithmX2";
|
|
|
|
md.modId = getModId();
|
|
|
|
md.version = getVersion();
|
|
|
|
md.name = getName();
|
|
|
|
}
|
|
|
|
|
2014-04-06 08:55:24 +02:00
|
|
|
@EventHandler
|
|
|
|
public void load(FMLInitializationEvent event)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2014-02-11 09:39:15 +01:00
|
|
|
@Override
|
|
|
|
public boolean registerBus(EventBus bus, LoadController controller)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String[] getASMTransformerClass()
|
|
|
|
{
|
2014-04-06 08:55:24 +02:00
|
|
|
return new String[] { "appeng.transformer.asm.ASMIntegration" };
|
2014-02-11 09:39:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getModContainerClass()
|
|
|
|
{
|
|
|
|
return "appeng.transformer.AppEngCore";
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getSetupClass()
|
|
|
|
{
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void injectData(Map<String, Object> data)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getModId()
|
|
|
|
{
|
|
|
|
return "AppliedEnergistics2-Core";
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getName()
|
|
|
|
{
|
|
|
|
return "AppliedEnergistics2 Core";
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getVersion()
|
|
|
|
{
|
|
|
|
return AEConfig.VERSION;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getDisplayVersion()
|
|
|
|
{
|
|
|
|
return getVersion();
|
|
|
|
}
|
|
|
|
|
|
|
|
public ModMetadata getMetadata()
|
|
|
|
{
|
|
|
|
return md;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getAccessTransformerClass()
|
|
|
|
{
|
2014-04-06 08:55:24 +02:00
|
|
|
return "appeng.transformer.asm.ASMTweaker";
|
2014-02-11 09:39:15 +01:00
|
|
|
}
|
|
|
|
}
|