2014-04-06 08:55:24 +02:00
|
|
|
package appeng.integration.modules;
|
|
|
|
|
2014-05-02 07:22:22 +02:00
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import net.minecraftforge.oredict.OreDictionary;
|
|
|
|
import appeng.api.AEApi;
|
|
|
|
import appeng.api.config.TunnelType;
|
2014-04-06 08:55:24 +02:00
|
|
|
import appeng.integration.BaseModule;
|
|
|
|
import appeng.integration.IIntegrationModule;
|
2014-05-02 07:22:22 +02:00
|
|
|
import cpw.mods.fml.common.registry.GameRegistry;
|
2014-04-06 08:55:24 +02:00
|
|
|
|
|
|
|
public class RF extends BaseModule implements IIntegrationModule
|
|
|
|
{
|
|
|
|
|
|
|
|
public static RF instance;
|
|
|
|
|
|
|
|
public RF() {
|
|
|
|
TestClass( cofh.api.energy.IEnergyHandler.class );
|
2014-05-09 16:42:52 +02:00
|
|
|
TestClass( cofh.api.energy.IEnergyConnection.class );
|
2014-04-06 08:55:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void Init()
|
|
|
|
{
|
2014-08-19 07:42:54 +02:00
|
|
|
}
|
2014-07-13 08:51:55 +02:00
|
|
|
|
2014-08-19 07:42:54 +02:00
|
|
|
void RFStack(String mod, String name, int dmg)
|
|
|
|
{
|
|
|
|
ItemStack modItem = GameRegistry.findItemStack( mod, name, 1 );
|
|
|
|
if ( modItem != null )
|
2014-05-02 07:22:22 +02:00
|
|
|
{
|
2014-08-19 07:42:54 +02:00
|
|
|
modItem.setItemDamage( dmg );
|
|
|
|
AEApi.instance().registries().p2pTunnel().addNewAttunement( modItem, TunnelType.RF_POWER );
|
2014-05-02 07:22:22 +02:00
|
|
|
}
|
2014-04-06 08:55:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void PostInit()
|
|
|
|
{
|
2014-08-19 07:42:54 +02:00
|
|
|
RFStack( "ExtraUtilities", "extractor_base", 12 );
|
|
|
|
RFStack( "ExtraUtilities", "pipes", 11 );
|
|
|
|
RFStack( "ExtraUtilities", "pipes", 14 );
|
|
|
|
RFStack( "ExtraUtilities", "generator", OreDictionary.WILDCARD_VALUE );
|
|
|
|
|
|
|
|
RFStack( "ThermalExpansion", "Cell", OreDictionary.WILDCARD_VALUE );
|
|
|
|
RFStack( "ThermalExpansion", "Dynamo", OreDictionary.WILDCARD_VALUE );
|
2014-04-06 08:55:24 +02:00
|
|
|
|
2014-08-19 07:42:54 +02:00
|
|
|
RFStack( "EnderIO", "itemPowerConduit", OreDictionary.WILDCARD_VALUE );
|
|
|
|
RFStack( "EnderIO", "blockCapacitorBank", 0 );
|
|
|
|
RFStack( "EnderIO", "blockPowerMonitor", 0 );
|
2014-04-06 08:55:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|