2013-12-27 23:59:59 +01:00
|
|
|
package appeng.integration.modules;
|
|
|
|
|
2014-01-28 21:08:51 +01:00
|
|
|
import ic2.api.energy.tile.IEnergyTile;
|
2013-12-27 23:59:59 +01:00
|
|
|
import ic2.api.recipe.RecipeInputItemStack;
|
|
|
|
import net.minecraft.item.Item;
|
|
|
|
import net.minecraft.item.ItemStack;
|
2014-01-20 17:41:37 +01:00
|
|
|
import net.minecraft.tileentity.TileEntity;
|
2014-01-28 21:08:51 +01:00
|
|
|
import net.minecraftforge.common.MinecraftForge;
|
2013-12-27 23:59:59 +01:00
|
|
|
import appeng.api.AEApi;
|
|
|
|
import appeng.integration.IIntegrationModule;
|
2014-01-20 17:41:37 +01:00
|
|
|
import appeng.integration.abstraction.IIC2;
|
2013-12-27 23:59:59 +01:00
|
|
|
|
2014-01-20 17:41:37 +01:00
|
|
|
public class IC2 implements IIntegrationModule, IIC2
|
2013-12-27 23:59:59 +01:00
|
|
|
{
|
|
|
|
|
|
|
|
public static IC2 instance;
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void Init()
|
|
|
|
{
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void PostInit()
|
|
|
|
{
|
2014-01-20 17:41:37 +01:00
|
|
|
AEApi.instance().registries().matterCannon().registerAmmo( getItem( "uraniumDrop" ), 238.0289 );
|
|
|
|
|
2013-12-27 23:59:59 +01:00
|
|
|
// certus quartz
|
2014-01-20 17:41:37 +01:00
|
|
|
maceratorRecipe( AEApi.instance().materials().materialCertusQuartzCrystal.stack( 1 ), AEApi.instance().materials().materialCertusQuartzDust.stack( 1 ) );
|
2013-12-27 23:59:59 +01:00
|
|
|
|
2014-01-28 21:08:51 +01:00
|
|
|
maceratorRecipe( AEApi.instance().materials().materialCertusQuartzCrystalCharged.stack( 1 ), AEApi.instance().materials().materialCertusQuartzDust.stack( 1 ) );
|
2013-12-27 23:59:59 +01:00
|
|
|
|
|
|
|
// fluix
|
2014-01-20 17:41:37 +01:00
|
|
|
maceratorRecipe( AEApi.instance().materials().materialFluixCrystal.stack( 1 ), AEApi.instance().materials().materialFluixDust.stack( 1 ) );
|
2013-12-27 23:59:59 +01:00
|
|
|
|
|
|
|
// nether quartz
|
|
|
|
maceratorRecipe( new ItemStack( Item.netherQuartz ), AEApi.instance().materials().materialNetherQuartzDust.stack( 1 ) );
|
|
|
|
}
|
|
|
|
|
2014-01-20 17:41:37 +01:00
|
|
|
/*
|
2014-01-28 21:08:51 +01:00
|
|
|
* private void compressorRecipe(ItemStack in, ItemStack out) {
|
|
|
|
* ic2.api.recipe.Recipes.compressor.addRecipe( new RecipeInputItemStack(
|
|
|
|
* in, in.stackSize ), null, out ); }
|
2014-01-20 17:41:37 +01:00
|
|
|
*/
|
2013-12-27 23:59:59 +01:00
|
|
|
private void maceratorRecipe(ItemStack in, ItemStack out)
|
|
|
|
{
|
|
|
|
ic2.api.recipe.Recipes.macerator.addRecipe( new RecipeInputItemStack( in, in.stackSize ), null, out );
|
|
|
|
}
|
|
|
|
|
2014-01-20 17:41:37 +01:00
|
|
|
@Override
|
|
|
|
public void addToEnergyNet(TileEntity appEngTile)
|
|
|
|
{
|
2014-01-28 21:08:51 +01:00
|
|
|
MinecraftForge.EVENT_BUS.post( new ic2.api.energy.event.EnergyTileLoadEvent( (IEnergyTile) appEngTile ) );
|
2014-01-20 17:41:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void removeFromEnergyNet(TileEntity appEngTile)
|
|
|
|
{
|
2014-01-28 21:08:51 +01:00
|
|
|
MinecraftForge.EVENT_BUS.post( new ic2.api.energy.event.EnergyTileUnloadEvent( (IEnergyTile) appEngTile ) );
|
2014-01-20 17:41:37 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public ItemStack getItem(String name)
|
|
|
|
{
|
|
|
|
return ic2.api.item.Items.getItem( name );
|
|
|
|
}
|
|
|
|
|
2013-12-27 23:59:59 +01:00
|
|
|
}
|