2013-12-01 23:17:22 +00:00
|
|
|
package tconstruct.plugins.ic2;
|
|
|
|
|
|
2014-08-05 22:09:57 -04:00
|
|
|
import cpw.mods.fml.common.event.FMLInitializationEvent;
|
|
|
|
|
import cpw.mods.fml.common.registry.GameRegistry.ObjectHolder;
|
2014-09-09 18:30:15 +10:00
|
|
|
import mantle.pulsar.pulse.*;
|
|
|
|
|
import net.minecraft.init.Blocks;
|
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
|
import net.minecraftforge.fluids.*;
|
2013-12-01 23:17:22 +00:00
|
|
|
import tconstruct.TConstruct;
|
|
|
|
|
import tconstruct.library.TConstructRegistry;
|
|
|
|
|
import tconstruct.library.crafting.LiquidCasting;
|
|
|
|
|
|
2014-08-05 22:09:57 -04:00
|
|
|
@ObjectHolder(TConstruct.modID)
|
|
|
|
|
@Pulse(id = "Tinkers IC2 Compatibility", description = "Tinkers Construct compatibility for IndustrialCraft 2", modsRequired = "IC2")
|
|
|
|
|
public class TinkerIC2
|
2014-02-05 09:11:06 -05:00
|
|
|
{
|
2014-08-05 22:09:57 -04:00
|
|
|
private static final String IC2_UUM_FLUIDNAME = "ic2fluiduumatter";
|
2013-12-01 23:17:22 +00:00
|
|
|
|
2014-08-05 22:09:57 -04:00
|
|
|
@Handler
|
|
|
|
|
public void init (FMLInitializationEvent event)
|
2014-02-05 09:11:06 -05:00
|
|
|
{
|
2014-08-05 22:09:57 -04:00
|
|
|
TConstruct.logger.info("IC2 detected. Preparing for shenanigans.");
|
2013-12-01 23:17:22 +00:00
|
|
|
|
2014-04-20 12:31:18 +01:00
|
|
|
Fluid fluidUUM = FluidRegistry.getFluid(IC2_UUM_FLUIDNAME);
|
2014-02-05 09:11:06 -05:00
|
|
|
if (fluidUUM == null)
|
|
|
|
|
return;
|
2013-12-01 23:17:22 +00:00
|
|
|
|
2013-12-19 13:03:16 +00:00
|
|
|
FluidStack fluidStackBlock = new FluidStack(fluidUUM, 4500);
|
2013-12-01 23:17:22 +00:00
|
|
|
LiquidCasting basinCasting = TConstructRegistry.getBasinCasting();
|
|
|
|
|
|
|
|
|
|
// Block casting
|
2013-12-31 14:11:05 -05:00
|
|
|
basinCasting.addCastingRecipe(new ItemStack(Blocks.diamond_block), fluidStackBlock, new ItemStack(Blocks.dirt), true, 50);
|
2013-12-01 23:17:22 +00:00
|
|
|
}
|
|
|
|
|
}
|