Files
TinkersConstruct/src/main/java/tconstruct/plugins/ic2/IC2.java
T

88 lines
3.1 KiB
Java
Raw Normal View History

2013-12-01 23:17:22 +00:00
package tconstruct.plugins.ic2;
2013-12-31 14:11:05 -05:00
import net.minecraft.init.Blocks;
2013-12-01 23:17:22 +00:00
import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.Fluid;
import net.minecraftforge.fluids.FluidRegistry;
import net.minecraftforge.fluids.FluidStack;
import tconstruct.TConstruct;
import tconstruct.library.TConstructRegistry;
import tconstruct.library.crafting.LiquidCasting;
import tconstruct.plugins.ICompatPlugin;
2014-02-05 09:11:06 -05:00
public class IC2 implements ICompatPlugin
{
2013-12-01 23:17:22 +00:00
private static final String IC2_UUM_FLUIDNAME = "uumatter";
private Fluid fluidUUM;
@Override
2014-02-05 09:11:06 -05:00
public String getModId ()
{
2013-12-01 23:17:22 +00:00
return "IC2";
}
@Override
2014-02-05 09:11:06 -05:00
public void preInit ()
{
2013-12-01 23:17:22 +00:00
}
@Override
2014-02-05 09:11:06 -05:00
public void init ()
{
2013-12-01 23:17:22 +00:00
TConstruct.logger.info("[IC2] Preparing for shenanigans.");
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
// Useful stuff
2014-02-16 14:23:50 -05:00
// ItemStack ingotCast = new ItemStack(TRepo.metalPattern, 1, 0);
// ItemStack gemCast = new ItemStack(TRepo.metalPattern, 1, 26);
// FluidStack fluidStack = new FluidStack(fluidUUM, 1);
2013-12-19 13:03:16 +00:00
FluidStack fluidStackBlock = new FluidStack(fluidUUM, 4500);
2014-02-16 14:23:50 -05:00
// LiquidCasting tableCasting = TConstructRegistry.getTableCasting();
2013-12-01 23:17:22 +00:00
LiquidCasting basinCasting = TConstructRegistry.getBasinCasting();
// Table casting
2014-02-16 14:23:50 -05:00
// tableCasting.addCastingRecipe(new ItemStack(Item.ingotIron),
// fluidStack, ingotCast, 20);
// tableCasting.addCastingRecipe(new ItemStack(Item.emerald),
// fluidStack, gemCast, 20);
2013-12-01 23:17:22 +00:00
// Block casting
2014-02-16 14:23:50 -05:00
// basinCasting.addCastingRecipe(new ItemStack(Block.blockIron),
// fluidStackBlock, null, true, 50); // Iron convenience
2013-12-01 23:17:22 +00:00
// Dirt <-> Diamonds
2014-02-16 14:23:50 -05:00
// basinCasting.addCastingRecipe(new ItemStack(Block.dirt), new
// FluidStack(fluidUUM, 500), new ItemStack(Block.blockDiamond), true,
// 50);
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
// RS cycle
2014-02-16 14:23:50 -05:00
// basinCasting.addCastingRecipe(new ItemStack(Block.blockRedstone),
// fluidStack, new ItemStack(Item.redstone), true, 50);
// basinCasting.addCastingRecipe(new ItemStack(Block.hardenedClay, 14,
// 1), fluidStack, new ItemStack(Block.blockRedstone), true, 50);
// basinCasting.addCastingRecipe(new ItemStack(Item.dyePowder, 1, 1),
// fluidStack, new ItemStack(Block.hardenedClay, 14, 1), true, 50);
// basinCasting.addCastingRecipe(new ItemStack(Block.blockRedstone),
// fluidStack, new ItemStack(Item.dyePowder, 1, 1), true, 50);
2013-12-01 23:17:22 +00:00
// Alloy Mixing
// 1mB Anything + 1mB UU = 2mB UU
2014-02-16 14:23:50 -05:00
/*
* Maybe a bit *too* trolly for (Map.Entry<String, Fluid> ent :
* FluidRegistry.getRegisteredFluids().entrySet()) { if (ent.getValue()
* != fluidUUM) Smeltery.addAlloyMixing(new FluidStack(fluidUUM, 2), new
* FluidStack(fluidUUM, 1), new FluidStack(ent.getValue(), 1)); }
*/
2013-12-01 23:17:22 +00:00
}
@Override
2014-02-05 09:11:06 -05:00
public void postInit ()
{
2013-12-01 23:17:22 +00:00
}
}