mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-17 11:05:02 +00:00
Upgraded to 1.7.2. List of currently-known issues are in CURRENT_ISSUES.txt file.
This commit is contained in:
1 parent
02655f092e
commit
02659b2816
227 files changed
+1350
-1222
No files matched your search
@@ -0,0 +1,128 @@
|
||||
package magicbees.main.utils.compat;
|
||||
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
|
||||
public class ExtraBeesHelper
|
||||
{
|
||||
public enum CombType
|
||||
{
|
||||
BARREN,
|
||||
ROTTEN,
|
||||
BONE,
|
||||
OIL,
|
||||
COAL,
|
||||
FUEL,
|
||||
WATER,
|
||||
MILK,
|
||||
FRUIT,
|
||||
SEED,
|
||||
ALCOHOL,
|
||||
STONE,
|
||||
REDSTONE,
|
||||
RESIN,
|
||||
IC2,
|
||||
IRON,
|
||||
GOLD,
|
||||
COPPER,
|
||||
TIN,
|
||||
SILVER,
|
||||
BRONZE,
|
||||
URANIUM,
|
||||
CLAY,
|
||||
OLD,
|
||||
FUNGAL,
|
||||
CREOSOTE,
|
||||
LATEX,
|
||||
ACIDIC,
|
||||
VENOMOUS,
|
||||
SLIME,
|
||||
BLAZE,
|
||||
COFFEE,
|
||||
GLACIAL,
|
||||
MINT,
|
||||
CITRUS,
|
||||
PEAT,
|
||||
SHADOW,
|
||||
LEAD,
|
||||
BRASS,
|
||||
ELECTRUM,
|
||||
ZINC,
|
||||
TITANIUM,
|
||||
TUNGSTEN,
|
||||
STEEL,
|
||||
IRIDIUM,
|
||||
PLATINUM,
|
||||
LAPIS,
|
||||
SODALITE,
|
||||
PYRITE,
|
||||
BAUXITE,
|
||||
CINNABAR,
|
||||
SPHALERITE,
|
||||
EMERALD,
|
||||
RUBY,
|
||||
SAPPHIRE,
|
||||
OLIVINE,
|
||||
DIAMOND,
|
||||
RED,
|
||||
YELLOW,
|
||||
BLUE,
|
||||
GREEN,
|
||||
BLACK,
|
||||
WHITE,
|
||||
BROWN,
|
||||
ORANGE,
|
||||
CYAN,
|
||||
PURPLE,
|
||||
GRAY,
|
||||
LIGHTBLUE,
|
||||
PINK,
|
||||
LIMEGREEN,
|
||||
MAGENTA,
|
||||
LIGHTGRAY,
|
||||
NICKEL,
|
||||
INVAR,
|
||||
GLOWSTONE,
|
||||
SALTPETER,
|
||||
PULP,
|
||||
MULCH,
|
||||
COMPOST,
|
||||
SAWDUST,
|
||||
;
|
||||
}
|
||||
|
||||
private static boolean isEBPresent = false;
|
||||
|
||||
public static boolean isActive()
|
||||
{
|
||||
return isEBPresent;
|
||||
}
|
||||
|
||||
public static void preInit()
|
||||
{
|
||||
if (cpw.mods.fml.common.Loader.isModLoaded("ExtraBees"))
|
||||
{
|
||||
isEBPresent = true;
|
||||
}
|
||||
}
|
||||
|
||||
public static void init() {}
|
||||
public static void postInit() {}
|
||||
|
||||
public static ItemStack getExtraBeeItem(String field)
|
||||
{
|
||||
ItemStack value = null;
|
||||
try
|
||||
{
|
||||
Class src = Class.forName("binnie.extrabees.core.ExtraBeeItem");
|
||||
Field f = src.getDeclaredField(field);
|
||||
|
||||
Item i = (Item) f.get(null);
|
||||
value = new ItemStack(i);
|
||||
}
|
||||
catch (Exception e) { }
|
||||
return value;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user