mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 19:59:55 +00:00
Port TCon to use the v2 loader infrastructure from Mantle
This commit is contained in:
1 parent
a3aa7c2380
commit
891086dca4
9 files changed
+88
-241
No files matched your search
@@ -1,5 +1,6 @@
|
||||
package tconstruct.plugins.ic2;
|
||||
|
||||
import mantle.module.ILoadableModule;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.fluids.Fluid;
|
||||
@@ -10,17 +11,13 @@ import tconstruct.library.TConstructRegistry;
|
||||
import tconstruct.library.crafting.LiquidCasting;
|
||||
import tconstruct.plugins.ICompatPlugin;
|
||||
|
||||
public class IC2 implements ICompatPlugin
|
||||
public class IC2 implements ILoadableModule
|
||||
{
|
||||
|
||||
private static final String IC2_UUM_FLUIDNAME = "uumatter";
|
||||
private Fluid fluidUUM;
|
||||
|
||||
@Override
|
||||
public String getModId ()
|
||||
{
|
||||
return "IC2";
|
||||
}
|
||||
@SuppressWarnings("unused")
|
||||
public static String modId = "IC2";
|
||||
|
||||
@Override
|
||||
public void preInit ()
|
||||
@@ -33,50 +30,15 @@ public class IC2 implements ICompatPlugin
|
||||
{
|
||||
TConstruct.logger.info("[IC2] Preparing for shenanigans.");
|
||||
|
||||
fluidUUM = FluidRegistry.getFluid(IC2_UUM_FLUIDNAME);
|
||||
Fluid fluidUUM = FluidRegistry.getFluid(IC2_UUM_FLUIDNAME);
|
||||
if (fluidUUM == null)
|
||||
return;
|
||||
|
||||
// Useful stuff
|
||||
// ItemStack ingotCast = new ItemStack(TRepo.metalPattern, 1, 0);
|
||||
// ItemStack gemCast = new ItemStack(TRepo.metalPattern, 1, 26);
|
||||
// FluidStack fluidStack = new FluidStack(fluidUUM, 1);
|
||||
FluidStack fluidStackBlock = new FluidStack(fluidUUM, 4500);
|
||||
// LiquidCasting tableCasting = TConstructRegistry.getTableCasting();
|
||||
LiquidCasting basinCasting = TConstructRegistry.getBasinCasting();
|
||||
|
||||
// Table casting
|
||||
// tableCasting.addCastingRecipe(new ItemStack(Item.ingotIron),
|
||||
// fluidStack, ingotCast, 20);
|
||||
// tableCasting.addCastingRecipe(new ItemStack(Item.emerald),
|
||||
// fluidStack, gemCast, 20);
|
||||
|
||||
// Block casting
|
||||
// basinCasting.addCastingRecipe(new ItemStack(Block.blockIron),
|
||||
// fluidStackBlock, null, true, 50); // Iron convenience
|
||||
// Dirt <-> Diamonds
|
||||
// basinCasting.addCastingRecipe(new ItemStack(Block.dirt), new
|
||||
// FluidStack(fluidUUM, 500), new ItemStack(Block.blockDiamond), true,
|
||||
// 50);
|
||||
basinCasting.addCastingRecipe(new ItemStack(Blocks.diamond_block), fluidStackBlock, new ItemStack(Blocks.dirt), true, 50);
|
||||
// RS cycle
|
||||
// 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);
|
||||
|
||||
// Alloy Mixing
|
||||
// 1mB Anything + 1mB UU = 2mB UU
|
||||
/*
|
||||
* 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)); }
|
||||
*/
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user