-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
7 changed files
with
86 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 18 additions & 2 deletions
20
src/main/java/at/chaosfield/openradio/integration/Init.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,30 @@ | ||
package at.chaosfield.openradio.integration; | ||
|
||
import net.minecraftforge.fml.common.Loader; | ||
import at.chaosfield.openradio.integration.actuallyAdditions.BookletEntry; | ||
import net.minecraftforge.fml.common.event.FMLInitializationEvent; | ||
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; | ||
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; | ||
|
||
/** | ||
* Created by Jakob Riepler (XDjackieXD) | ||
*/ | ||
public class Init{ | ||
public static boolean isActAddLoaded = Loader.isModLoaded("actuallyadditions"); | ||
public static int minActAddVersion = 28; | ||
public static int loadedActAddVersion = 0; | ||
public static String[] actAddLaserRelayEnergy = {"actuallyadditions:blockLaserRelay", "actuallyadditions:blockLaserRelayAdvanced", "actuallyadditions:blockLaserRelayExtreme"}; | ||
public static String[] actAddLaserRelayItem = {"actuallyadditions:blockLaserRelayItem", "actuallyadditions:blockLaserRelayItemWhitelist"}; | ||
public static String[] actAddLaserRelayFluid = {"actuallyadditions:blockLaserRelayFluids"}; | ||
|
||
public static void preInitIntegration(FMLPreInitializationEvent event){ | ||
|
||
} | ||
|
||
public static void initIntegration(FMLInitializationEvent event){ | ||
|
||
} | ||
|
||
public static void postInitIntegration(FMLPostInitializationEvent event){ | ||
if(Init.loadedActAddVersion >= Init.minActAddVersion) | ||
BookletEntry.postInit(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters