Add CTMLib files

This commit is contained in:
Johann Bernhardt committed 2021-12-12 11:06:12 +01:00
1 parent b4165072a7
commit d05e019479
13 files changed
+1680

No files matched your search

@@ -0,0 +1,18 @@
package team.chisel.ctmlib;
import cpw.mods.fml.common.ModAPIManager;
public class CTMLib {
public static final String VERSION = "GRADLETOKEN_VERSION";
private static boolean chiselPresent, chiselInitialized;
public static boolean chiselLoaded() {
if (!chiselInitialized) {
chiselInitialized = true;
chiselPresent = ModAPIManager.INSTANCE.hasAPI("ChiselAPI");
}
return chiselPresent;
}
}