2014-11-14 12:02:52 +01:00
|
|
|
/*
|
|
|
|
* This file is part of Applied Energistics 2.
|
|
|
|
* Copyright (c) 2013 - 2014, AlgorithmX2, All rights reserved.
|
|
|
|
*
|
|
|
|
* Applied Energistics 2 is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* Applied Energistics 2 is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* along with Applied Energistics 2. If not, see <http://www.gnu.org/licenses/lgpl>.
|
|
|
|
*/
|
|
|
|
|
2014-02-11 09:39:15 +01:00
|
|
|
package appeng.transformer;
|
|
|
|
|
|
|
|
|
2015-04-03 08:54:31 +02:00
|
|
|
import java.util.Map;
|
2015-04-13 19:28:53 +02:00
|
|
|
import javax.annotation.Nullable;
|
2014-02-11 09:39:15 +01:00
|
|
|
|
|
|
|
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;
|
|
|
|
|
2015-04-03 08:54:31 +02:00
|
|
|
import com.google.common.eventbus.EventBus;
|
|
|
|
|
2014-12-29 21:59:05 +01:00
|
|
|
import appeng.core.AEConfig;
|
|
|
|
|
2015-04-03 08:54:31 +02:00
|
|
|
|
|
|
|
@MCVersion( "1.7.10" )
|
2015-04-13 19:28:53 +02:00
|
|
|
public final class AppEngCore extends DummyModContainer implements IFMLLoadingPlugin
|
2014-02-11 09:39:15 +01:00
|
|
|
{
|
2015-04-13 19:28:53 +02:00
|
|
|
private final ModMetadata metadata = new ModMetadata();
|
2014-02-11 09:39:15 +01:00
|
|
|
|
2015-04-03 08:54:31 +02:00
|
|
|
public AppEngCore()
|
|
|
|
{
|
2014-02-11 09:39:15 +01:00
|
|
|
FMLRelaunchLog.info( "[AppEng] Core Init" );
|
2015-04-13 19:28:53 +02:00
|
|
|
this.metadata.autogenerated = false;
|
|
|
|
this.metadata.authorList.add( "AlgorithmX2" );
|
|
|
|
this.metadata.credits = "AlgorithmX2";
|
|
|
|
this.metadata.modId = this.getModId();
|
|
|
|
this.metadata.version = this.getVersion();
|
|
|
|
this.metadata.name = this.getName();
|
|
|
|
this.metadata.url = "http://ae2.ae-mod.info";
|
|
|
|
this.metadata.description = "Embedded Coremod for Applied Energistics 2";
|
2014-02-11 09:39:15 +01:00
|
|
|
}
|
|
|
|
|
2014-04-06 08:55:24 +02:00
|
|
|
@EventHandler
|
2015-04-03 08:54:31 +02:00
|
|
|
public void load( FMLInitializationEvent event )
|
2014-04-06 08:55:24 +02:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2014-02-11 09:39:15 +01:00
|
|
|
@Override
|
|
|
|
public String[] getASMTransformerClass()
|
|
|
|
{
|
2014-05-20 16:38:29 +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";
|
|
|
|
}
|
|
|
|
|
2015-04-13 19:28:53 +02:00
|
|
|
@Nullable
|
2014-02-11 09:39:15 +01:00
|
|
|
@Override
|
|
|
|
public String getSetupClass()
|
|
|
|
{
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2015-04-03 08:54:31 +02:00
|
|
|
public void injectData( Map<String, Object> data )
|
2014-02-11 09:39:15 +01:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2015-04-03 08:54:31 +02:00
|
|
|
@Override
|
|
|
|
public String getAccessTransformerClass()
|
|
|
|
{
|
|
|
|
return "appeng.transformer.asm.ASMTweaker";
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public ModMetadata getMetadata()
|
|
|
|
{
|
2015-04-13 19:28:53 +02:00
|
|
|
return this.metadata;
|
2015-04-03 08:54:31 +02:00
|
|
|
}
|
|
|
|
|
2014-02-11 09:39:15 +01:00
|
|
|
@Override
|
|
|
|
public String getModId()
|
|
|
|
{
|
2014-07-25 06:59:58 +02:00
|
|
|
return "appliedenergistics2-core";
|
2014-02-11 09:39:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getName()
|
|
|
|
{
|
|
|
|
return "AppliedEnergistics2 Core";
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getVersion()
|
|
|
|
{
|
|
|
|
return AEConfig.VERSION;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2015-04-03 08:54:31 +02:00
|
|
|
public boolean registerBus( EventBus bus, LoadController controller )
|
2014-02-11 09:39:15 +01:00
|
|
|
{
|
2015-04-03 08:54:31 +02:00
|
|
|
return true;
|
2014-02-11 09:39:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2015-04-03 08:54:31 +02:00
|
|
|
public String getDisplayVersion()
|
2014-02-11 09:39:15 +01:00
|
|
|
{
|
2015-04-03 08:54:31 +02:00
|
|
|
return this.getVersion();
|
2014-02-11 09:39:15 +01:00
|
|
|
}
|
|
|
|
}
|