Added Botania Transmutation effect for Alfheim bees.

Refactored the Aura provider code to not depend on Thaumcraft & allow for other modes of providing aura to bees.
Added Mana Apiary Booster.
Added Botania lexicon integration for Alfheim bee, Mana apiary booster.
This commit is contained in:
MysteriousAges committed 2015-04-24 14:45:21 -07:00
1 parent 549433e445
commit 83f82decd8
20 files changed
+389 -84

No files matched your search

@@ -0,0 +1,31 @@
package magicbees.bees.allele.effect;
import magicbees.api.bees.ITransmutationEffectLogic;
import magicbees.main.utils.compat.BotaniaHelper;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
import net.minecraft.world.biome.BiomeGenBase;
import net.minecraftforge.oredict.OreDictionary;
public class TransmutationEffectLBotaniaLiving implements ITransmutationEffectLogic {
@Override
public boolean tryTransmutation(World world, BiomeGenBase biome, ItemStack sourceBlock, int x, int y, int z) {
int[] oreIDs = OreDictionary.getOreIDs(sourceBlock);
for (int oreId : oreIDs) {
if (oreId == OreDictionary.getOreID("logWood")) {
world.setBlock(x, y, z, BotaniaHelper.blockLivingWood);
return true;
}
else if (oreId == OreDictionary.getOreID("stone")) {
world.setBlock(x, y, z, BotaniaHelper.blockLivingRock);
return true;
}
else if (oreId == OreDictionary.getOreID("livingwood")) {
world.setBlock(x, y, z, BotaniaHelper.blockDreamWood);
return true;
}
}
return false;
}
}