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;
|
|
|
|
import appeng.api.features.IP2PTunnelRegistry;
|
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 );
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void Init()
|
|
|
|
{
|
2014-05-02 07:22:22 +02:00
|
|
|
IP2PTunnelRegistry reg = AEApi.instance().registries().p2pTunnel();
|
2014-04-06 08:55:24 +02:00
|
|
|
|
2014-05-02 07:22:22 +02:00
|
|
|
ItemStack energyConduit = GameRegistry.findItemStack( "EnderIO", "itemPowerConduit", 1 );
|
|
|
|
if ( energyConduit != null )
|
|
|
|
{
|
|
|
|
energyConduit.setItemDamage( OreDictionary.WILDCARD_VALUE );
|
|
|
|
reg.addNewAttunement( energyConduit, TunnelType.RF_POWER );
|
|
|
|
}
|
|
|
|
|
|
|
|
reg.addNewAttunement( GameRegistry.findItemStack( "EnderIO", "blockCapacitorBank", 1 ), TunnelType.RF_POWER );
|
|
|
|
reg.addNewAttunement( GameRegistry.findItemStack( "EnderIO", "blockPowerMonitor", 1 ), TunnelType.RF_POWER );
|
2014-04-06 08:55:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void PostInit()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|