mirror of
https://github.com/GTNewHorizons/Gadomancy.git
synced 2026-11-22 04:52:14 +00:00
- Mystcraft stuff
This commit is contained in:
1 parent
da5b270172
commit
a7ebcfc611
4 files changed
+60
-13
No files matched your search
@@ -1,12 +0,0 @@
|
||||
package makeo.gadomancy.client.fx;
|
||||
|
||||
/**
|
||||
* This class is part of the Gadomancy Mod
|
||||
* Gadomancy is Open Source and distributed under the
|
||||
* GNU LESSER GENERAL PUBLIC LICENSE
|
||||
* for more read the LICENSE file
|
||||
* <p/>
|
||||
* Created by HellFirePvP @ 17.11.2015 18:23
|
||||
*/
|
||||
public class EntityFxFlowPolicy {
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package makeo.gadomancy.common.integration.mystcraft;
|
||||
|
||||
import com.xcompwiz.mystcraft.api.event.LinkEvent;
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import makeo.gadomancy.common.data.config.ModConfig;
|
||||
|
||||
/**
|
||||
* This class is part of the Gadomancy Mod
|
||||
* Gadomancy is Open Source and distributed under the
|
||||
* GNU LESSER GENERAL PUBLIC LICENSE
|
||||
* for more read the LICENSE file
|
||||
* <p/>
|
||||
* Created by HellFirePvP @ 20.12.2015 15:53
|
||||
*/
|
||||
public class EventHandlerMystcraft {
|
||||
|
||||
@SubscribeEvent
|
||||
public void onLink(LinkEvent.LinkEventAllow event) {
|
||||
if(event.origin != null && event.origin.provider.dimensionId == ModConfig.dimOuterId) {
|
||||
event.setCanceled(true);
|
||||
}
|
||||
if(event.destination != null && event.destination.provider.dimensionId == ModConfig.dimOuterId) {
|
||||
event.setCanceled(true);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package makeo.gadomancy.common.integration.mystcraft;
|
||||
|
||||
import cpw.mods.fml.common.FMLCommonHandler;
|
||||
import makeo.gadomancy.common.integration.IntegrationMod;
|
||||
import net.minecraftforge.common.MinecraftForge;
|
||||
|
||||
/**
|
||||
* This class is part of the Gadomancy Mod
|
||||
* Gadomancy is Open Source and distributed under the
|
||||
* GNU LESSER GENERAL PUBLIC LICENSE
|
||||
* for more read the LICENSE file
|
||||
* <p/>
|
||||
* Created by HellFirePvP @ 20.12.2015 15:50
|
||||
*/
|
||||
public class IntegrationMystcraft extends IntegrationMod {
|
||||
|
||||
@Override
|
||||
public String getModId() {
|
||||
return "Mystcraft";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void doInit() {
|
||||
EventHandlerMystcraft eventHandler = new EventHandlerMystcraft();
|
||||
MinecraftForge.EVENT_BUS.register(eventHandler);
|
||||
FMLCommonHandler.instance().bus().register(eventHandler);
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,9 @@ package makeo.gadomancy.common.registration;
|
||||
|
||||
import cpw.mods.fml.common.FMLLog;
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import makeo.gadomancy.common.Gadomancy;
|
||||
import makeo.gadomancy.common.integration.*;
|
||||
import makeo.gadomancy.common.integration.mystcraft.IntegrationMystcraft;
|
||||
import makeo.gadomancy.common.utils.Injector;
|
||||
|
||||
/**
|
||||
@@ -18,6 +20,7 @@ public class RegisteredIntegrations {
|
||||
public static IntegrationThaumicExploration thaumicExploration;
|
||||
public static IntegrationAutomagy automagy;
|
||||
public static IntegrationNEI nei;
|
||||
public static IntegrationMystcraft mystcraft;
|
||||
|
||||
private RegisteredIntegrations() {}
|
||||
|
||||
@@ -26,6 +29,7 @@ public class RegisteredIntegrations {
|
||||
thaumicExploration = registerIndependent(IntegrationThaumicExploration.class);
|
||||
automagy = registerIndependent(IntegrationAutomagy.class);
|
||||
nei = registerIndependent(IntegrationNEI.class);
|
||||
mystcraft = registerIndependent(IntegrationMystcraft.class);
|
||||
|
||||
registerDependent("ThaumicHorizons", "makeo.gadomancy.common.integration.thaumichorizions.IntegrationThaumicHorizions");
|
||||
registerDependent("Waila", "makeo.gadomancy.common.integration.waila.IntegrationWaila");
|
||||
@@ -58,7 +62,7 @@ public class RegisteredIntegrations {
|
||||
|
||||
integration.init();
|
||||
if(integration.isPresent()) {
|
||||
FMLLog.severe("Initialized hook for mod \"" + integration.getModId() + "\"!");
|
||||
Gadomancy.log.info("Initialized hook for mod \"" + integration.getModId() + "\"!");
|
||||
}
|
||||
return integration;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user