aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/lib
diff options
context:
space:
mode:
authordraknyte1 <draknyte1@hotmail.com>2016-11-04 15:23:26 +1000
committerdraknyte1 <draknyte1@hotmail.com>2016-11-04 15:23:26 +1000
commit0669f5eb9d5029a8b94ec552171b0837605f7747 (patch)
tree6b40e64c04d51b7a33cf2f0b35f7232cf37c4247 /src/Java/gtPlusPlus/core/lib
parent3654052fb63a571c5eaca7f20714b87c17f7e966 (diff)
downloadGT5-Unofficial-0669f5eb9d5029a8b94ec552171b0837605f7747.tar.gz
GT5-Unofficial-0669f5eb9d5029a8b94ec552171b0837605f7747.tar.bz2
GT5-Unofficial-0669f5eb9d5029a8b94ec552171b0837605f7747.zip
$ Cleaned up the entire project.
> Much neat, very nices.
Diffstat (limited to 'src/Java/gtPlusPlus/core/lib')
-rw-r--r--src/Java/gtPlusPlus/core/lib/CORE.java180
-rw-r--r--src/Java/gtPlusPlus/core/lib/LoadedMods.java262
2 files changed, 225 insertions, 217 deletions
diff --git a/src/Java/gtPlusPlus/core/lib/CORE.java b/src/Java/gtPlusPlus/core/lib/CORE.java
index 9f8a0100dc..e634822dfc 100644
--- a/src/Java/gtPlusPlus/core/lib/CORE.java
+++ b/src/Java/gtPlusPlus/core/lib/CORE.java
@@ -15,100 +15,104 @@ import net.minecraftforge.common.config.Configuration;
public class CORE {
- public static final String name = "GT++";
- public static final String MODID = "miscutils";
- public static final String VERSION = "1.4.9-release";
- public static final String MASTER_VERSION = NetworkUtils.getContentFromURL("https://raw.githubusercontent.com/draknyte1/GTplusplus/master/Recommended.txt").toLowerCase();
- public static boolean isModUpToDate = Utils.isModUpToDate();
- public static boolean DEBUG = false;
- public static final boolean LOAD_ALL_CONTENT = false;
- public static final int GREG_FIRST_ID = 760;
- public static Map PlayerCache;
- public static final String[] VOLTAGES = {"ULV","LV","MV","HV","EV","IV","LuV","ZPM","UV","MAX"};
- public static final boolean MAIN_GREGTECH_5U_EXPERIMENTAL_FORK = Meta_GT_Proxy.areWeUsingGregtech5uExperimental();
- public static IGregtech_RecipeAdder RA;
+ public static class configSwitches {
+
+ // Debug
+ public static boolean disableEnderIOIntegration = false;
+
+ // Machine Related
+ public static boolean enableAlternativeBatteryAlloy = false;
+ public static boolean enableThaumcraftShardUnification = false;
+ public static boolean disableIC2Recipes = false;
+ public static boolean enableAlternativeDivisionSigilRecipe = false;
+
+ // Feature Related
+ public static boolean enableCustomAlvearyBlocks = false;
+
+ // Single Block Machines
+ public static boolean enableMachine_SolarGenerators = false;
+ public static boolean enableMachine_Dehydrators = true;
+ public static boolean enableMachine_SteamConverter = true;
+ public static boolean enableMachine_FluidTanks = true;
+ public static boolean enableMachine_RocketEngines = true;
+ public static boolean enableMachine_GeothermalEngines = true;
+ public static boolean enableCustom_Pipes = true;
+ public static boolean enableCustom_Cables = true;
+
+ // Multiblocks
+ public static boolean enabledMultiblock_AlloyBlastSmelter = true;
+ public static boolean enabledMultiblock_IndustrialCentrifuge = true;
+ public static boolean enabledMultiblock_IndustrialCokeOven = true;
+ public static boolean enabledMultiblock_IndustrialElectrolyzer = true;
+ public static boolean enabledMultiblock_IndustrialMacerationStack = true;
+ public static boolean enabledMultiblock_IndustrialPlatePress = true;
+ public static boolean enabledMultiblock_IndustrialWireMill = true;
+ public static boolean enabledMultiblock_IronBlastFurnace = true;
+ public static boolean enabledMultiblock_MatterFabricator = true;
+ public static boolean enabledMultiblock_MultiTank = true;
+ public static boolean enabledMultiblock_PowerSubstation = true;
+
+ }
+ // GUIS
+ public enum GUI_ENUM {
+ ENERGYBUFFER, TOOLBUILDER, NULL, NULL1, NULL2
+ }
+ public static final String name = "GT++";
+ public static final String MODID = "miscutils";
+ public static final String VERSION = "1.4.9-release";
+ public static final String MASTER_VERSION = NetworkUtils
+ .getContentFromURL("https://raw.githubusercontent.com/draknyte1/GTplusplus/master/Recommended.txt")
+ .toLowerCase();
+ public static boolean isModUpToDate = Utils
+ .isModUpToDate();
+ public static boolean DEBUG = false;
+ public static final boolean LOAD_ALL_CONTENT = false;
+ public static final int GREG_FIRST_ID = 760;
+ public static Map PlayerCache;
+ public static final String[] VOLTAGES = {
+ "ULV", "LV", "MV", "HV", "EV", "IV", "LuV", "ZPM", "UV", "MAX"
+ };
+ public static final boolean MAIN_GREGTECH_5U_EXPERIMENTAL_FORK = Meta_GT_Proxy
+ .areWeUsingGregtech5uExperimental();
+ public static IGregtech_RecipeAdder RA;
+
@Deprecated
- public static IGregtech_RecipeAdder sRecipeAdder;
- public static GregtechRecipe GT_Recipe = new GregtechRecipe();
-
- public static Configuration Config;
- public static final String GT_Tooltip = "Added by: " + EnumChatFormatting.DARK_GREEN+"Alkalus "+EnumChatFormatting.GRAY+"- "+EnumChatFormatting.RED+"[GT++]";
- public static final String GT_Tooltip_Radioactive = EnumChatFormatting.GRAY+"Warning: "+EnumChatFormatting.GREEN+"Radioactive! "+EnumChatFormatting.GOLD+" Avoid direct handling without hazmat protection.";
- public static final String noItem = "";
-
+ public static IGregtech_RecipeAdder sRecipeAdder;
+ public static GregtechRecipe GT_Recipe = new GregtechRecipe();
+ public static Configuration Config;
+ public static final String GT_Tooltip = "Added by: "
+ + EnumChatFormatting.DARK_GREEN + "Alkalus " + EnumChatFormatting.GRAY + "- " + EnumChatFormatting.RED
+ + "[GT++]";
+
+ public static final String GT_Tooltip_Radioactive = EnumChatFormatting.GRAY
+ + "Warning: " + EnumChatFormatting.GREEN + "Radioactive! " + EnumChatFormatting.GOLD
+ + " Avoid direct handling without hazmat protection.";
+
+ public static final String noItem = "";
+
/**
- * A List containing all the Materials, which are somehow in use by GT and therefor receive a specific Set of Items.
+ * A List containing all the Materials, which are somehow in use by GT and
+ * therefor receive a specific Set of Items.
*/
- public static final GT_Materials[] sMU_GeneratedMaterials = new GT_Materials[1000];
-
- //Tesseract map
- public static final Map<Integer, GT_MetaTileEntity_TesseractGenerator> sTesseractGenerators = new HashMap<Integer, GT_MetaTileEntity_TesseractGenerator>();
-
- //GUIS
- public enum GUI_ENUM
- {
- ENERGYBUFFER, TOOLBUILDER, NULL, NULL1, NULL2
- }
+ public static final GT_Materials[] sMU_GeneratedMaterials = new GT_Materials[1000];
+
+ // Tesseract map
+ public static final Map<Integer, GT_MetaTileEntity_TesseractGenerator> sTesseractGenerators = new HashMap<Integer, GT_MetaTileEntity_TesseractGenerator>();
+
+ // public static final Materials2[] MiscGeneratedMaterials = new
+ // Materials2[1000];
/**
* File Paths and Resource Paths
*/
- public static final String
- TEX_DIR = "textures/",
- TEX_DIR_GUI = TEX_DIR + "gui/",
- TEX_DIR_ITEM = TEX_DIR + "items/",
- TEX_DIR_BLOCK = TEX_DIR + "blocks/",
- TEX_DIR_ENTITY = TEX_DIR + "entity/",
- TEX_DIR_ASPECTS = TEX_DIR + "aspects/",
- TEX_DIR_FLUIDS = TEX_DIR_BLOCK + "fluids/",
- RES_PATH = MODID + ":" + TEX_DIR,
- RES_PATH_GUI = MODID + ":" + TEX_DIR_GUI,
- RES_PATH_ITEM = MODID + ":" + TEX_DIR_ITEM,
- RES_PATH_BLOCK = MODID + ":" + TEX_DIR_BLOCK,
- RES_PATH_ENTITY = MODID + ":" + TEX_DIR_ENTITY,
- RES_PATH_ASPECTS = MODID + ":" + TEX_DIR_ASPECTS,
- RES_PATH_FLUIDS = MODID + ":" + TEX_DIR_FLUIDS;
-
-
- //public static final Materials2[] MiscGeneratedMaterials = new Materials2[1000];
+ public static final String TEX_DIR = "textures/", TEX_DIR_GUI = CORE.TEX_DIR + "gui/",
+ TEX_DIR_ITEM = CORE.TEX_DIR + "items/", TEX_DIR_BLOCK = CORE.TEX_DIR + "blocks/",
+ TEX_DIR_ENTITY = CORE.TEX_DIR + "entity/", TEX_DIR_ASPECTS = CORE.TEX_DIR + "aspects/",
+ TEX_DIR_FLUIDS = CORE.TEX_DIR_BLOCK + "fluids/", RES_PATH = CORE.MODID + ":" + CORE.TEX_DIR,
+ RES_PATH_GUI = CORE.MODID + ":" + CORE.TEX_DIR_GUI, RES_PATH_ITEM = CORE.MODID + ":" + CORE.TEX_DIR_ITEM,
+ RES_PATH_BLOCK = CORE.MODID + ":" + CORE.TEX_DIR_BLOCK,
+ RES_PATH_ENTITY = CORE.MODID + ":" + CORE.TEX_DIR_ENTITY,
+ RES_PATH_ASPECTS = CORE.MODID + ":" + CORE.TEX_DIR_ASPECTS,
+ RES_PATH_FLUIDS = CORE.MODID + ":" + CORE.TEX_DIR_FLUIDS;
- public static class configSwitches {
-
- //Debug
- public static boolean disableEnderIOIntegration = false;
-
- //Machine Related
- public static boolean enableAlternativeBatteryAlloy = false;
- public static boolean enableThaumcraftShardUnification = false;
- public static boolean disableIC2Recipes = false;
- public static boolean enableAlternativeDivisionSigilRecipe = false;
-
- //Feature Related
- public static boolean enableCustomAlvearyBlocks = false;
-
- //Single Block Machines
- public static boolean enableMachine_SolarGenerators = false;
- public static boolean enableMachine_Dehydrators = true;
- public static boolean enableMachine_SteamConverter = true;
- public static boolean enableMachine_FluidTanks = true;
- public static boolean enableMachine_RocketEngines = true;
- public static boolean enableMachine_GeothermalEngines = true;
- public static boolean enableCustom_Pipes = true;
- public static boolean enableCustom_Cables = true;
-
- //Multiblocks
- public static boolean enabledMultiblock_AlloyBlastSmelter = true;
- public static boolean enabledMultiblock_IndustrialCentrifuge = true;
- public static boolean enabledMultiblock_IndustrialCokeOven = true;
- public static boolean enabledMultiblock_IndustrialElectrolyzer = true;
- public static boolean enabledMultiblock_IndustrialMacerationStack = true;
- public static boolean enabledMultiblock_IndustrialPlatePress = true;
- public static boolean enabledMultiblock_IndustrialWireMill = true;
- public static boolean enabledMultiblock_IronBlastFurnace = true;
- public static boolean enabledMultiblock_MatterFabricator = true;
- public static boolean enabledMultiblock_MultiTank = true;
- public static boolean enabledMultiblock_PowerSubstation = true;
-
- }
-
}
diff --git a/src/Java/gtPlusPlus/core/lib/LoadedMods.java b/src/Java/gtPlusPlus/core/lib/LoadedMods.java
index 40a3ce447d..37de718027 100644
--- a/src/Java/gtPlusPlus/core/lib/LoadedMods.java
+++ b/src/Java/gtPlusPlus/core/lib/LoadedMods.java
@@ -8,199 +8,203 @@ import gtPlusPlus.xmod.gregtech.recipes.GregtechRecipeAdder;
public class LoadedMods {
-
- //Initialize Variables
- public static boolean Gregtech = false;
- public static boolean EnderIO = false;
- public static boolean Big_Reactors = false;
- public static boolean IndustrialCraft2 = false;
- public static boolean Simply_Jetpacks = false;
- public static boolean RFTools = false;
- public static boolean Thaumcraft = false;
- public static boolean Baubles = false;
- public static boolean Extra_Utils = false;
- public static boolean PneumaticCraft = false;
- public static boolean MorePlanets = false;
- public static boolean ForbiddenMagic = false;
- public static boolean CompactWindmills = false;
- public static boolean Railcraft = false;
- public static boolean ImmersiveEngineering = false;
- public static boolean Growthcraft = false;
- public static boolean CoFHCore = false;
- public static boolean Forestry = false;
- public static boolean MagicBees = false;
- public static boolean ExtraBees = false;
- public static boolean Psychedelicraft = false;
- public static boolean MiscUtils = true; //Dummy For MetaData Lookups in MT Wrapper
- public static boolean ThermalFoundation = false;
- public static boolean IHL = false;
- public static boolean OpenComputers = false; //OpenComputers
- public static boolean Computronics = false; //computronics
-
+ // Initialize Variables
+ public static boolean Gregtech = false;
+ public static boolean EnderIO = false;
+ public static boolean Big_Reactors = false;
+ public static boolean IndustrialCraft2 = false;
+ public static boolean Simply_Jetpacks = false;
+ public static boolean RFTools = false;
+ public static boolean Thaumcraft = false;
+ public static boolean Baubles = false;
+ public static boolean Extra_Utils = false;
+ public static boolean PneumaticCraft = false;
+ public static boolean MorePlanets = false;
+ public static boolean ForbiddenMagic = false;
+ public static boolean CompactWindmills = false;
+ public static boolean Railcraft = false;
+ public static boolean ImmersiveEngineering = false;
+ public static boolean Growthcraft = false;
+ public static boolean CoFHCore = false;
+ public static boolean Forestry = false;
+ public static boolean MagicBees = false;
+ public static boolean ExtraBees = false;
+ public static boolean Psychedelicraft = false;
+ public static boolean MiscUtils = true; // Dummy For
+ // MetaData
+ // Lookups in MT
+ // Wrapper
+ public static boolean ThermalFoundation = false;
+ public static boolean IHL = false;
+ public static boolean OpenComputers = false; // OpenComputers
+ public static boolean Computronics = false; // computronics
+
+ private static int totalMods;
-
- private static int totalMods;
@SuppressWarnings("deprecation")
- public static void checkLoaded(){
+ public static void checkLoaded() {
Utils.LOG_INFO("Looking for optional mod prereqs.");
- if (Loader.isModLoaded("gregtech") == true ){
- Gregtech = true;
+ if (Loader.isModLoaded("gregtech") == true) {
+ LoadedMods.Gregtech = true;
Utils.LOG_INFO("Components enabled for: Gregtech");
- if (Gregtech){
+ if (LoadedMods.Gregtech) {
try {
CORE.sRecipeAdder = CORE.RA = new GregtechRecipeAdder();
Utils.LOG_INFO("Created Gregtech recipe handler.");
GregtechTextures.BlockIcons.VOID.name();
GregtechTextures.ItemIcons.VOID.name();
Utils.LOG_INFO("Created Gregtech texture handler.");
- } catch (NullPointerException e){
+ }
+ catch (final NullPointerException e) {
Utils.LOG_INFO("Could NOT create a Gregtech recipe handler.");
}
}
-
- totalMods++;
+
+ LoadedMods.totalMods++;
}
- if (Loader.isModLoaded("EnderIO") == true && !configSwitches.disableEnderIOIntegration){
- EnderIO = true;
+ if (Loader.isModLoaded("EnderIO") == true && !configSwitches.disableEnderIOIntegration) {
+ LoadedMods.EnderIO = true;
Utils.LOG_INFO("Components enabled for: EnderIO");
- totalMods++;
+ LoadedMods.totalMods++;
}
- if (Loader.isModLoaded("BigReactors") == true){
- Big_Reactors = true;
+ if (Loader.isModLoaded("BigReactors") == true) {
+ LoadedMods.Big_Reactors = true;
Utils.LOG_INFO("Components enabled for: Big Reactors");
- totalMods++;
+ LoadedMods.totalMods++;
}
- if (Loader.isModLoaded("IC2") == true){
- IndustrialCraft2 = true;
+ if (Loader.isModLoaded("IC2") == true) {
+ LoadedMods.IndustrialCraft2 = true;
Utils.LOG_INFO("Components enabled for: IndustrialCraft2");
- totalMods++;
+ LoadedMods.totalMods++;
}
- if (Loader.isModLoaded("simplyjetpacks") == true){
- Simply_Jetpacks = true;
+ if (Loader.isModLoaded("simplyjetpacks") == true) {
+ LoadedMods.Simply_Jetpacks = true;
Utils.LOG_INFO("Components enabled for: Simply Jetpacks");
- totalMods++;
+ LoadedMods.totalMods++;
}
- if (Loader.isModLoaded("rftools") == true){
- RFTools = true;
+ if (Loader.isModLoaded("rftools") == true) {
+ LoadedMods.RFTools = true;
Utils.LOG_INFO("Components enabled for: RFTools");
- totalMods++;
+ LoadedMods.totalMods++;
}
- if (Loader.isModLoaded("Thaumcraft") == true){
- Thaumcraft = true;
+ if (Loader.isModLoaded("Thaumcraft") == true) {
+ LoadedMods.Thaumcraft = true;
Utils.LOG_INFO("Components enabled for: Thaumcraft");
- totalMods++;
+ LoadedMods.totalMods++;
}
- if (Loader.isModLoaded("ExtraUtilities") == true){
- Extra_Utils = true;
+ if (Loader.isModLoaded("ExtraUtilities") == true) {
+ LoadedMods.Extra_Utils = true;
Utils.LOG_INFO("Components enabled for: Extra_Utils");
- totalMods++;
+ LoadedMods.totalMods++;
}
- if (Loader.isModLoaded("PneumaticCraft") == true){
- PneumaticCraft = true;
+ if (Loader.isModLoaded("PneumaticCraft") == true) {
+ LoadedMods.PneumaticCraft = true;
Utils.LOG_INFO("Components enabled for: PneumaticCraft");
- totalMods++;
+ LoadedMods.totalMods++;
}
- if (Loader.isModLoaded("MorePlanet") == true){
- MorePlanets = true;
+ if (Loader.isModLoaded("MorePlanet") == true) {
+ LoadedMods.MorePlanets = true;
Utils.LOG_INFO("Components enabled for: MorePlanets");
- totalMods++;
+ LoadedMods.totalMods++;
}
- if (Loader.isModLoaded("ForbiddenMagic") == true){
- ForbiddenMagic = true;
+ if (Loader.isModLoaded("ForbiddenMagic") == true) {
+ LoadedMods.ForbiddenMagic = true;
Utils.LOG_INFO("Components enabled for: ForbiddenMagic");
- totalMods++;
+ LoadedMods.totalMods++;
}
- if (Loader.isModLoaded("CompactWindmills") == true){
- CompactWindmills = true;
+ if (Loader.isModLoaded("CompactWindmills") == true) {
+ LoadedMods.CompactWindmills = true;
Utils.LOG_INFO("Components enabled for: CompactWindmills");
- totalMods++;
+ LoadedMods.totalMods++;
}
- if (Loader.isModLoaded("Railcraft") == true){
- Railcraft = true;
+ if (Loader.isModLoaded("Railcraft") == true) {
+ LoadedMods.Railcraft = true;
Utils.LOG_INFO("Components enabled for: Railcraft");
- totalMods++;
+ LoadedMods.totalMods++;
}
- if (Loader.isModLoaded("Growthcraft") == true){
- Utils.LOG_INFO("Growthcraft Version: "+getModVersion("Growthcraft"));
- if (getModVersion("Growthcraft").equals("1.7.10-2.3.1")){
- //Load Growthcraft Compat
- Growthcraft = true;
+ if (Loader.isModLoaded("Growthcraft") == true) {
+ Utils.LOG_INFO("Growthcraft Version: " + LoadedMods.getModVersion("Growthcraft"));
+ if (LoadedMods.getModVersion("Growthcraft").equals("1.7.10-2.3.1")) {
+ // Load Growthcraft Compat
+ LoadedMods.Growthcraft = true;
Utils.LOG_INFO("Components enabled for: Growthcraft");
- totalMods++;
+ LoadedMods.totalMods++;
}
else {
- Growthcraft = false;
+ LoadedMods.Growthcraft = false;
Utils.LOG_INFO("Growthcraft found, but the version was too new. I will update GC support eventually.");
}
}
- if (Loader.isModLoaded("CoFHCore") == true){
- CoFHCore = true;
+ if (Loader.isModLoaded("CoFHCore") == true) {
+ LoadedMods.CoFHCore = true;
Utils.LOG_INFO("Components enabled for: CoFHCore");
- totalMods++;
+ LoadedMods.totalMods++;
}
- if (Loader.isModLoaded("Forestry") == true){
- Forestry = true;
+ if (Loader.isModLoaded("Forestry") == true) {
+ LoadedMods.Forestry = true;
Utils.LOG_INFO("Components enabled for: Forestry");
- totalMods++;
+ LoadedMods.totalMods++;
}
- if (Loader.isModLoaded("MagicBees") == true){
- MagicBees = true;
+ if (Loader.isModLoaded("MagicBees") == true) {
+ LoadedMods.MagicBees = true;
Utils.LOG_INFO("Components enabled for: MagicBees");
- totalMods++;
+ LoadedMods.totalMods++;
}
- if (Loader.isModLoaded("psychedelicraft") == true){
- Psychedelicraft = true;
+ if (Loader.isModLoaded("psychedelicraft") == true) {
+ LoadedMods.Psychedelicraft = true;
Utils.LOG_INFO("Components enabled for: Psychedelicraft");
- totalMods++;
+ LoadedMods.totalMods++;
}
- if (Loader.isModLoaded("ImmersiveEngineering") == true){
- ImmersiveEngineering = true;
+ if (Loader.isModLoaded("ImmersiveEngineering") == true) {
+ LoadedMods.ImmersiveEngineering = true;
Utils.LOG_INFO("Components enabled for: ImmersiveEngineering");
- totalMods++;
+ LoadedMods.totalMods++;
}
- if (Loader.isModLoaded("ExtraBees") == true){
- ExtraBees = true;
+ if (Loader.isModLoaded("ExtraBees") == true) {
+ LoadedMods.ExtraBees = true;
Utils.LOG_INFO("Components enabled for: ExtraBees");
- totalMods++;
- }
- if (Loader.isModLoaded("ThermalFoundation") == false){
- ThermalFoundation = false;
- Utils.LOG_INFO("Components enabled for: ThermalFoundation - This feature will disable itself if you add TF.");
- totalMods++;
- }
- else if (Loader.isModLoaded("ThermalFoundation") == true){
- ThermalFoundation = true;
- Utils.LOG_INFO("Components disabled for: ThermalFoundation - This feature will enable itself if you remove TF.");
- //totalMods++;
- }
- if (Loader.isModLoaded("ihl") == true){
- IHL = true;
+ LoadedMods.totalMods++;
+ }
+ if (Loader.isModLoaded("ThermalFoundation") == false) {
+ LoadedMods.ThermalFoundation = false;
+ Utils.LOG_INFO(
+ "Components enabled for: ThermalFoundation - This feature will disable itself if you add TF.");
+ LoadedMods.totalMods++;
+ }
+ else if (Loader.isModLoaded("ThermalFoundation") == true) {
+ LoadedMods.ThermalFoundation = true;
+ Utils.LOG_INFO(
+ "Components disabled for: ThermalFoundation - This feature will enable itself if you remove TF.");
+ // totalMods++;
+ }
+ if (Loader.isModLoaded("ihl") == true) {
+ LoadedMods.IHL = true;
Utils.LOG_INFO("Components enabled for: IHL");
- totalMods++;
- }
- if (Loader.isModLoaded("Baubles") == true){
- Baubles = true;
+ LoadedMods.totalMods++;
+ }
+ if (Loader.isModLoaded("Baubles") == true) {
+ LoadedMods.Baubles = true;
Utils.LOG_INFO("Components enabled for: Baubles");
- totalMods++;
+ LoadedMods.totalMods++;
}
- if (Loader.isModLoaded("OpenComputers") == true){
- OpenComputers = true;
+ if (Loader.isModLoaded("OpenComputers") == true) {
+ LoadedMods.OpenComputers = true;
Utils.LOG_INFO("Components enabled for: OpenComputers");
- totalMods++;
+ LoadedMods.totalMods++;
}
- if (Loader.isModLoaded("computronics") == true){
- Computronics = true;
+ if (Loader.isModLoaded("computronics") == true) {
+ LoadedMods.Computronics = true;
Utils.LOG_INFO("Components enabled for: Computronics");
- totalMods++;
+ LoadedMods.totalMods++;
}
-
- Utils.LOG_INFO("Content found for "+totalMods+" mods");
-
+
+ Utils.LOG_INFO("Content found for " + LoadedMods.totalMods + " mods");
+
}
-
- public static String getModVersion(String modName){
+
+ public static String getModVersion(final String modName) {
final String ver = cpw.mods.fml.common.FMLCommonHandler.instance().findContainerFor(modName).getVersion();
return ver;
}
-
+
}