mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-13 16:54:08 +00:00
Adding BotaniaHelper for future reasons.
This commit is contained in:
1 parent
d64ec3caa2
commit
d8cd023876
5 files changed
+44
No files matched your search
@@ -86,6 +86,7 @@ public class Config
|
||||
public static boolean redstoneArsenalActive;
|
||||
public static boolean thaumcraftActive;
|
||||
public static boolean thermalExpansionActive;
|
||||
public static boolean botaniaActive;
|
||||
|
||||
public static float magnetBaseRange;
|
||||
public static float magnetLevelMultiplier;
|
||||
@@ -331,6 +332,9 @@ public class Config
|
||||
|
||||
p = configuration.get("modules", "ThermalExpansion", true);
|
||||
thermalExpansionActive = p.getBoolean();
|
||||
|
||||
p = configuration.get("modules", "Botania", true);
|
||||
botaniaActive = p.getBoolean();
|
||||
}
|
||||
|
||||
private void doGeneralConfigs() {
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
package magicbees.main.utils.compat;
|
||||
|
||||
import magicbees.main.Config;
|
||||
import magicbees.main.utils.BlockInterface;
|
||||
import cpw.mods.fml.common.Loader;
|
||||
|
||||
public class BotaniaHelper {
|
||||
private static boolean isBotaniaActive = false;
|
||||
public static final String Name = "AWWayofTime";
|
||||
|
||||
public static boolean isActive() {
|
||||
return isBotaniaActive;
|
||||
}
|
||||
|
||||
public static void preInit() {
|
||||
if (Loader.isModLoaded(Name) && Config.bloodMagicActive) {
|
||||
isBotaniaActive = true;
|
||||
}
|
||||
}
|
||||
|
||||
public static void init() {
|
||||
if (isActive()) {
|
||||
getBlocks();
|
||||
getItems();
|
||||
}
|
||||
}
|
||||
|
||||
public static void postInit() {
|
||||
}
|
||||
|
||||
public static void getBlocks() {
|
||||
Config.bmBloodStoneBrick = BlockInterface.getBlock(Name, "bloodStoneBrick");
|
||||
}
|
||||
|
||||
public static void getItems() {
|
||||
}
|
||||
}
|
||||
@@ -13,6 +13,7 @@ public class ModHelper
|
||||
ThermalExpansionHelper.preInit();
|
||||
RedstoneArsenalHelper.preInit();
|
||||
BloodMagicHelper.preInit();
|
||||
BotaniaHelper.preInit();
|
||||
}
|
||||
|
||||
public static void init()
|
||||
@@ -26,6 +27,7 @@ public class ModHelper
|
||||
ThermalExpansionHelper.init();
|
||||
RedstoneArsenalHelper.init();
|
||||
BloodMagicHelper.init();
|
||||
BotaniaHelper.init();
|
||||
}
|
||||
|
||||
public static void postInit()
|
||||
@@ -39,5 +41,6 @@ public class ModHelper
|
||||
ThermalExpansionHelper.postInit();
|
||||
RedstoneArsenalHelper.postInit();
|
||||
BloodMagicHelper.postInit();
|
||||
BotaniaHelper.postInit();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user