mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 12:09:39 +00:00
Add Guide Book and Analyzer Screen (#2073)
This commit is contained in:
1 parent
b5a8740e4a
commit
8ba478d758
251 files changed
+7985
-2550
No files matched your search
@@ -0,0 +1,24 @@
|
||||
package forestry.modules;
|
||||
|
||||
import java.util.stream.Stream;
|
||||
|
||||
import forestry.core.config.Constants;
|
||||
|
||||
public final class ModuleHelper {
|
||||
|
||||
private ModuleHelper() {
|
||||
}
|
||||
|
||||
public static boolean isEnabled(String moduleID) {
|
||||
return isModuleEnabled(Constants.MOD_ID, moduleID);
|
||||
}
|
||||
|
||||
public static boolean isEnabled(String... moduleIDs) {
|
||||
return Stream.of(moduleIDs).allMatch(ModuleHelper::isEnabled);
|
||||
}
|
||||
|
||||
public static boolean isModuleEnabled(String containerID, String moduleID){
|
||||
ModuleManager manager = ModuleManager.getInstance();
|
||||
return manager.isModuleEnabled(containerID, moduleID);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user