equivalent-exchange-3/src/main/java/com/pahimar/ee3/api/exchange/EnergyValueMappingsTester.java

32 lines
740 B
Java
Raw Normal View History

2015-05-07 19:45:06 +02:00
package com.pahimar.ee3.api.exchange;
2023-01-03 17:47:36 +01:00
import java.io.File;
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) {
runTest(file, false);
}
2023-01-03 17:47:36 +01:00
public static void runTest(File file, boolean strict) {
init();
2023-01-03 17:47:36 +01:00
if (ee3Mod != null) {
EE3Wrapper.ee3mod.runEnergyValueTestSuite(file, strict);
}
}
@Mod.Instance("EE3")
private static Object ee3Mod;
2023-01-03 17:47:36 +01:00
private static class EE3Wrapper { private static EquivalentExchange3 ee3mod; }
2023-01-03 17:47:36 +01:00
private static void init() {
if (ee3Mod != null) {
EE3Wrapper.ee3mod = (EquivalentExchange3) ee3Mod;
}
}
}