2013-12-01 23:17:22 +00:00
|
|
|
package tconstruct.plugins.ic2;
|
|
|
|
|
|
|
|
|
|
import net.minecraft.block.Block;
|
|
|
|
|
import net.minecraft.item.Item;
|
|
|
|
|
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.common.TRepo;
|
|
|
|
|
import tconstruct.library.TConstructRegistry;
|
|
|
|
|
import tconstruct.library.crafting.LiquidCasting;
|
|
|
|
|
import tconstruct.library.crafting.Smeltery;
|
|
|
|
|
import tconstruct.plugins.ICompatPlugin;
|
|
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
public class IC2 implements ICompatPlugin {
|
|
|
|
|
|
|
|
|
|
private static final String IC2_UUM_FLUIDNAME = "uumatter";
|
|
|
|
|
private Fluid fluidUUM;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String getModId() {
|
|
|
|
|
return "IC2";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void preInit() {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void init() {
|
|
|
|
|
TConstruct.logger.info("[IC2] Preparing for shenanigans.");
|
|
|
|
|
|
|
|
|
|
fluidUUM = FluidRegistry.getFluid(IC2_UUM_FLUIDNAME);
|
|
|
|
|
if (fluidUUM == null) return;
|
|
|
|
|
|
|
|
|
|
// Useful stuff
|
2013-12-19 13:02:19 +00: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-01 23:17:22 +00:00
|
|
|
FluidStack fluidStackBlock = new FluidStack(fluidUUM, 9);
|
2013-12-19 13:02:19 +00:00
|
|
|
//LiquidCasting tableCasting = TConstructRegistry.getTableCasting();
|
2013-12-01 23:17:22 +00:00
|
|
|
LiquidCasting basinCasting = TConstructRegistry.getBasinCasting();
|
|
|
|
|
|
|
|
|
|
// Table casting
|
2013-12-19 13:02:19 +00: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
|
2013-12-19 13:02:19 +00:00
|
|
|
//basinCasting.addCastingRecipe(new ItemStack(Block.blockIron), fluidStackBlock, null, true, 50); // Iron convenience
|
2013-12-01 23:17:22 +00:00
|
|
|
// Dirt <-> Diamonds
|
2013-12-19 13:02:19 +00:00
|
|
|
//basinCasting.addCastingRecipe(new ItemStack(Block.dirt), new FluidStack(fluidUUM, 500), new ItemStack(Block.blockDiamond), true, 50);
|
2013-12-01 23:17:22 +00:00
|
|
|
basinCasting.addCastingRecipe(new ItemStack(Block.blockDiamond), fluidStackBlock, new ItemStack(Block.dirt), true, 50);
|
|
|
|
|
// RS cycle
|
2013-12-19 13:02:19 +00: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
|
2013-12-04 14:57:48 +00:00
|
|
|
/* Maybe a bit *too* trolly
|
2013-12-01 23:17:22 +00:00
|
|
|
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-04 14:57:48 +00:00
|
|
|
}*/
|
2013-12-01 23:17:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void postInit() {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|