mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-20 04:09:48 +00:00
Finishing up Worldgen, added new initial mutations (still several left to go)
This commit is contained in:
1 parent
b7714a1435
commit
37e8965a3c
19 files changed
+464
-423
No files matched your search
@@ -1,10 +1,14 @@
|
||||
package magicbees.main.utils.compat;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
|
||||
import cpw.mods.fml.common.FMLLog;
|
||||
import magicbees.main.Config;
|
||||
import net.minecraft.item.Item;
|
||||
import forestry.api.core.EnumHumidity;
|
||||
import forestry.api.core.EnumTemperature;
|
||||
import forestry.api.core.ItemInterface;
|
||||
import forestry.api.genetics.IAllele;
|
||||
|
||||
public class ForestryHelper
|
||||
{
|
||||
@@ -104,6 +108,24 @@ public class ForestryHelper
|
||||
Config.fPollen = Item.itemsList[ItemInterface.getItem("pollen").itemID];
|
||||
Config.fCraftingResource = Item.itemsList[ItemInterface.getItem("craftingMaterial").itemID];
|
||||
}
|
||||
|
||||
public static IAllele[] getTemplateForestryForSpecies(String speciesName)
|
||||
{
|
||||
IAllele[] template = null;
|
||||
try
|
||||
{
|
||||
//BeeTemplates.getValiantTemplate()
|
||||
Class c = Class.forName("forestry.apiculture.genetics.BeeTemplates");
|
||||
Method m = c.getMethod("getCommonTemplate");
|
||||
template = (IAllele[])(m.invoke(null));
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
FMLLog.severe("Could not get Forestry templates. Are you SURE this version of Magic Bees compatible with your version of Forestry?");
|
||||
e.printStackTrace();
|
||||
}
|
||||
return template;
|
||||
}
|
||||
|
||||
public static EnumTemperature getEnumTemperatureFromValue(float rawTemp)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user