Applied-Energistics-2-tiler.../transformer/AppEngCore.java

109 lines
2 KiB
Java
Raw Normal View History

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;
2014-06-25 03:19:42 +02:00
@MCVersion()
public class AppEngCore extends DummyModContainer implements IFMLLoadingPlugin
{
public final AppEngCore instance;
protected final ModMetadata md = new ModMetadata();
public AppEngCore() {
instance = this;
FMLRelaunchLog.info( "[AppEng] Core Init" );
2014-08-09 04:41:43 +02:00
md.autogenerated = false;
md.authorList.add( "AlgorithmX2" );
md.credits = "AlgorithmX2";
md.modId = getModId();
md.version = getVersion();
md.name = getName();
2014-08-09 04:41:43 +02:00
md.url = "http://ae2.ae-mod.info";
md.description = "Embeded Coremod for Applied Energistics 2";
}
@EventHandler
public void load(FMLInitializationEvent event)
{
}
@Override
public boolean registerBus(EventBus bus, LoadController controller)
{
return true;
}
@Override
public String[] getASMTransformerClass()
{
2014-05-20 16:38:29 +02:00
return new String[] { "appeng.transformer.asm.ASMIntegration" };
}
@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()
{
return "appeng.transformer.asm.ASMTweaker";
}
}