mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-13 16:54:08 +00:00
Adding a reference to the Tempus thaumcraft aspect in the API. Closes #44
This commit is contained in:
1 parent
079c572a1a
commit
07942d4218
2 files changed
+10
-5
No files matched your search
@@ -6,4 +6,8 @@ public class MagicBeesAPI
|
||||
{
|
||||
// Use this object during or after the Mod.Init phase to add your logic to the Transmutation bee effect.
|
||||
public static ITransmutationEffectController transmutationEffectController;
|
||||
|
||||
// This is a reference to the Tempus aspect. Initialized after MagicBees's post init phase.
|
||||
// Ensure it is not null, and cast it to thaumcraft.api.aspects.Aspect.
|
||||
public static Object thaumcraftAspectTempus;
|
||||
}
|
||||
@@ -4,6 +4,7 @@ import java.util.ArrayList;
|
||||
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
import magicbees.api.MagicBeesAPI;
|
||||
import magicbees.item.types.PollenType;
|
||||
import magicbees.item.types.PropolisType;
|
||||
import magicbees.item.types.ResourceType;
|
||||
@@ -155,6 +156,11 @@ public class ThaumcraftHelper {
|
||||
public static void preInit() {
|
||||
if (Loader.isModLoaded(Name) && Config.thaumcraftActive) {
|
||||
isThaumcraftPresent = true;
|
||||
aspectTime = new Aspect("tempus", 0xB68CFF, new Aspect[] {
|
||||
Aspect.VOID, Aspect.ORDER }, new ResourceLocation(
|
||||
CommonProxy.DOMAIN, CommonProxy.TEXTURE
|
||||
+ "aspects/tempus.png"), 1);
|
||||
MagicBeesAPI.thaumcraftAspectTempus = aspectTime;
|
||||
} else {
|
||||
// Switch off TC-dependant items.
|
||||
ResourceType.LORE_FRAGMENT.setHidden();
|
||||
@@ -176,11 +182,6 @@ public class ThaumcraftHelper {
|
||||
|
||||
public static void postInit() {
|
||||
if (isActive()) {
|
||||
aspectTime = new Aspect("tempus", 0xB68CFF, new Aspect[] {
|
||||
Aspect.VOID, Aspect.ORDER }, new ResourceLocation(
|
||||
CommonProxy.DOMAIN, CommonProxy.TEXTURE
|
||||
+ "aspects/tempus.png"), 1);
|
||||
|
||||
setupItemAspects();
|
||||
setupCrafting();
|
||||
setupResearch();
|
||||
|
||||
Reference in new issue
Block a user