2015-05-07 19:45:06 +02:00
|
|
|
package com.pahimar.ee3.api.exchange;
|
2015-04-14 04:27:11 +02:00
|
|
|
|
2023-01-03 17:47:36 +01:00
|
|
|
import java.io.File;
|
|
|
|
|
2015-04-14 04:27:11 +02:00
|
|
|
import com.pahimar.ee3.EquivalentExchange3;
|
|
|
|
import cpw.mods.fml.common.Mod;
|
|
|
|
|
2023-01-03 17:47:36 +01:00
|
|
|
public class EnergyValueMappingsTester {
|
|
|
|
public static void runTest(File file) {
|
2015-04-14 04:27:11 +02:00
|
|
|
runTest(file, false);
|
|
|
|
}
|
|
|
|
|
2023-01-03 17:47:36 +01:00
|
|
|
public static void runTest(File file, boolean strict) {
|
2015-04-14 04:27:11 +02:00
|
|
|
init();
|
|
|
|
|
2023-01-03 17:47:36 +01:00
|
|
|
if (ee3Mod != null) {
|
2016-05-25 17:01:07 +02:00
|
|
|
EE3Wrapper.ee3mod.runEnergyValueTestSuite(file, strict);
|
2015-04-14 04:27:11 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@Mod.Instance("EE3")
|
|
|
|
private static Object ee3Mod;
|
|
|
|
|
2023-01-03 17:47:36 +01:00
|
|
|
private static class EE3Wrapper { private static EquivalentExchange3 ee3mod; }
|
2015-04-14 04:27:11 +02:00
|
|
|
|
2023-01-03 17:47:36 +01:00
|
|
|
private static void init() {
|
|
|
|
if (ee3Mod != null) {
|
2015-04-14 04:27:11 +02:00
|
|
|
EE3Wrapper.ee3mod = (EquivalentExchange3) ee3Mod;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|