mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-28 15:36:18 +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
@@ -19,7 +19,9 @@ public class ForestryModuleUids {
|
||||
public static final String BACKPACKS = "backpacks";
|
||||
public static final String DATABASE = "database";
|
||||
public static final String SORTING = "sorting";
|
||||
public static final String BOOK = "book";
|
||||
public static final String CULTIVATION = "cultivation";
|
||||
public static final String RESEARCH = "research";
|
||||
|
||||
//Mod Plugins
|
||||
public static final String BIOMES_O_PLENTY = "biomes.o.plenty";
|
||||
|
||||
@@ -163,6 +163,14 @@ public class InternalModuleHandler {
|
||||
}
|
||||
}
|
||||
|
||||
public void runBookInit() {
|
||||
for (IForestryModule module : modules) {
|
||||
Log.debug("Book Entry Registration Start: {}", module);
|
||||
//odule.registerBookEntries(ForesterBook.INSTANCE);
|
||||
Log.debug("Book Entry Registration Complete: {}", module);
|
||||
}
|
||||
}
|
||||
|
||||
public void processIMCMessages(ImmutableList<FMLInterModComms.IMCMessage> messages) {
|
||||
for (FMLInterModComms.IMCMessage message : messages) {
|
||||
for (BlankForestryModule module : modules) {
|
||||
|
||||
@@ -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