2013-12-27 23:59:59 +01:00
|
|
|
package appeng.integration.modules;
|
|
|
|
|
|
|
|
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;
|
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
|
|
|
|
|
|
|
maceratorRecipe( AEApi.instance().materials().materialCertusQuartzCrystalCharged.stack( 1 ),
|
|
|
|
AEApi.instance().materials().materialCertusQuartzDust.stack( 1 ) );
|
|
|
|
|
|
|
|
// 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
|
|
|
/*
|
|
|
|
* private void compressorRecipe(ItemStack in, ItemStack out) { ic2.api.recipe.Recipes.compressor.addRecipe( new
|
|
|
|
* RecipeInputItemStack( in, in.stackSize ), null, out ); }
|
|
|
|
*/
|
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)
|
|
|
|
{
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void removeFromEnergyNet(TileEntity appEngTile)
|
|
|
|
{
|
|
|
|
// TODO Auto-generated method stub
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public ItemStack getItem(String name)
|
|
|
|
{
|
|
|
|
return ic2.api.item.Items.getItem( name );
|
|
|
|
}
|
|
|
|
|
2013-12-27 23:59:59 +01:00
|
|
|
}
|