MCPcopy Create free account
hub / github.com/BuildCraft/BuildCraft / isBcMod

Method isBcMod

common/buildcraft/api/BCModules.java:35–44  ·  view source on GitHub ↗
(String modid)

Source from the content-addressed store, hash-verified

33 public static void fmlPreInit() {}
34
35 public static boolean isBcMod(String modid) {
36 if (!modid.startsWith(MODID_START)) return false;
37 String post = modid.substring(MODID_START.length());
38 for (BCModules module : VALUES) {
39 if (post.equals(module.part)) {
40 return true;
41 }
42 }
43 return false;
44 }
45
46 public boolean isLoaded() {
47 return Loader.isModLoaded(modid);

Callers 1

onConfigChangeMethod · 0.95

Calls 1

equalsMethod · 0.45

Tested by

no test coverage detected