Added ability to remove fluidgenerator recipe via CT. Closes #1404
This commit is contained in:
parent
91a56077d8
commit
c69b9f46b6
2 changed files with 44 additions and 0 deletions
|
@ -58,7 +58,36 @@ public class CTFluidGen {
|
|||
addFluid(EFluidGenerator.PLASMA, fluid, energyPerMb);
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void removeThermalFluid(ILiquidStack fluid) {
|
||||
removeFluid(EFluidGenerator.THERMAL, fluid);
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void removeGasFluid(ILiquidStack fluid) {
|
||||
removeFluid(EFluidGenerator.GAS, fluid);
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void removeSemiFluid(ILiquidStack fluid) {
|
||||
removeFluid(EFluidGenerator.SEMIFLUID, fluid);
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void removeDieselFluid(ILiquidStack fluid) {
|
||||
removeFluid(EFluidGenerator.DIESEL, fluid);
|
||||
}
|
||||
|
||||
@ZenMethod
|
||||
public static void removePlasmaFluid(ILiquidStack fluid) {
|
||||
removeFluid(EFluidGenerator.PLASMA, fluid);
|
||||
}
|
||||
|
||||
private static void addFluid(EFluidGenerator type, ILiquidStack fluid, int energyPerMb) {
|
||||
GeneratorRecipeHelper.registerFluidRecipe(type, CraftTweakerCompat.toFluidStack(fluid).getFluid(), energyPerMb);
|
||||
}
|
||||
|
||||
private static void removeFluid(EFluidGenerator type, ILiquidStack fluid) {
|
||||
GeneratorRecipeHelper.removeFluidRecipe(type, CraftTweakerCompat.toFluidStack(fluid).getFluid());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue