mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-12 16:27:34 +00:00
Add AE2 Helper
This commit is contained in:
1 parent
3fad743f61
commit
7a77dca7c7
1 file changed
+40
@@ -0,0 +1,40 @@
|
||||
package magicbees.main.utils.compat;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import magicbees.main.Config;
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
|
||||
public class AppliedEnergisticsHelper {
|
||||
|
||||
public static ItemStack silicon;
|
||||
public static ItemStack fluixCrystal;
|
||||
public static Block skystone;
|
||||
|
||||
public static final String Name = "appliedenergistics2";
|
||||
private static boolean isModActive = false;
|
||||
|
||||
public static boolean isActive() {
|
||||
return isModActive;
|
||||
}
|
||||
|
||||
public static void preInit() {
|
||||
if (Loader.isModLoaded(Name) && Config.ae2Active) {
|
||||
isModActive = true;
|
||||
}
|
||||
}
|
||||
|
||||
public static void init() {
|
||||
if (isActive()) {
|
||||
skystone = GameRegistry.findBlock(Name, "tile.skystone");
|
||||
silicon = GameRegistry.findItemStack(Name, "item.silicon", 1);
|
||||
}
|
||||
}
|
||||
|
||||
public static void postInit() {
|
||||
if (isActive()) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user