mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-21 12:42:20 +00:00
More things!
This commit is contained in:
1 parent
6ae6a8afc0
commit
bc596ee3a6
83 files changed
No files matched your search
@@ -0,0 +1,48 @@
|
||||
package magicbees.main.utils.compat;
|
||||
|
||||
import magicbees.main.Config;
|
||||
import net.minecraft.item.Item;
|
||||
import cpw.mods.fml.common.FMLLog;
|
||||
import cpw.mods.fml.common.Loader;
|
||||
|
||||
public class EquivalentExchangeHelper
|
||||
{
|
||||
private static boolean isEquivalentExchangePresent = false;
|
||||
|
||||
public static boolean isActive()
|
||||
{
|
||||
return isEquivalentExchangePresent;
|
||||
}
|
||||
|
||||
public static void init()
|
||||
{
|
||||
if (Loader.isModLoaded("EE3"))
|
||||
{
|
||||
isEquivalentExchangePresent = true;
|
||||
}
|
||||
}
|
||||
|
||||
public static void getBlocks()
|
||||
{
|
||||
if (isActive())
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public static void getItems()
|
||||
{
|
||||
if (isActive())
|
||||
{
|
||||
try
|
||||
{
|
||||
Class itemClass = Class.forName("com.pahimar.ee3.item.ModItems");
|
||||
Config.eeMinuimShard = (Item)(itemClass.getField("miniumShard").get(null));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
FMLLog.info("Could not get Equivalent Exchange items.");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user