MCPcopy Index your code
hub / github.com/GregTech6/gregtech6 / onModPostInit2

Method onModPostInit2

src/main/java/gregapi/GT_API.java:773–844  ·  view source on GitHub ↗
(FMLPostInitializationEvent aEvent)

Source from the content-addressed store, hash-verified

771 }
772
773 @Override
774 public void onModPostInit2(FMLPostInitializationEvent aEvent) {
775 if (MD.IC2.mLoaded) {
776 PotionsGT.ID_RADIATION = ic2.api.info.Info.POTION_RADIATION.id;
777 }
778 if (MD.ENVM.mLoaded) {
779 PotionsGT.ID_DEHYDRATION = enviromine.EnviroPotion.dehydration.id;
780 PotionsGT.ID_FROSTBITE = enviromine.EnviroPotion.frostbite.id;
781 PotionsGT.ID_HEATSTROKE = enviromine.EnviroPotion.heatstroke.id;
782 PotionsGT.ID_HYPOTHERMIA = enviromine.EnviroPotion.hypothermia.id;
783 PotionsGT.ID_INSANITY = enviromine.EnviroPotion.insanity.id;
784 }
785 if (MD.IE.mLoaded) {
786 PotionsGT.ID_FLAMMABLE = blusunrize.immersiveengineering.common.util.IEPotions.flammable.id;
787 PotionsGT.ID_SLIPPERY = blusunrize.immersiveengineering.common.util.IEPotions.slippery.id;
788 PotionsGT.ID_CONDUCTIVE = blusunrize.immersiveengineering.common.util.IEPotions.conductive.id;
789 PotionsGT.ID_STICKY = blusunrize.immersiveengineering.common.util.IEPotions.sticky.id;
790 }
791
792 EnergyCompat.checkAvailabilities();
793 ToolCompat.checkAvailabilities();
794 ST.checkAvailabilities();
795
796 OUT.println(getModNameForLog() + ": If the Loading Bar somehow Freezes at this Point, then you definetly ran out of Memory or permgenspace, look at the other Logs to confirm it.");
797 OreDictManager.INSTANCE.onPostLoad();
798
799 ICover tCover = new CoverRedstoneTorch();
800 CoverRegistry.put(ST.make(Blocks.redstone_torch, 1, 0), tCover);
801 CoverRegistry.put(ST.make(Blocks.unlit_redstone_torch, 1, 0), tCover);
802 CoverRegistry.put(ST.make(Items.repeater, 1, 0), new CoverRedstoneRepeater());
803
804 OreDictPrefix.applyAllStackSizes();
805
806 ST.forceProperMaxStacksizes();
807
808// Doesn't fucking work, the Chisel API is pure garbage...
809// if (MD.CHSL.mLoaded) {
810// if (MD.EtFu.mLoaded) {
811// FMLInterModComms.sendRuntimeMessage(GAPI, "ChiselAPI|Carving", "variation:add", "granite|" +MD.EtFu.mID+":stone|1");
812// FMLInterModComms.sendRuntimeMessage(GAPI, "ChiselAPI|Carving", "variation:add", "diorite|" +MD.EtFu.mID+":stone|3");
813// FMLInterModComms.sendRuntimeMessage(GAPI, "ChiselAPI|Carving", "variation:add", "andesite|"+MD.EtFu.mID+":stone|5");
814// }
815// if (MD.BOTA.mLoaded) {
816// FMLInterModComms.sendRuntimeMessage(GAPI, "ChiselAPI|Carving", "variation:add", "granite|" +MD.BOTA.mID+":stone|3");
817// FMLInterModComms.sendRuntimeMessage(GAPI, "ChiselAPI|Carving", "variation:add", "diorite|" +MD.BOTA.mID+":stone|2");
818// FMLInterModComms.sendRuntimeMessage(GAPI, "ChiselAPI|Carving", "variation:add", "andesite|"+MD.BOTA.mID+":stone|0");
819// }
820// if (MD.GT.mLoaded) {
821// FMLInterModComms.sendRuntimeMessage(GAPI, "ChiselAPI|Carving", "variation:add", "granite|" +MD.GT.mID+":gt.stone.granite|0");
822// FMLInterModComms.sendRuntimeMessage(GAPI, "ChiselAPI|Carving", "variation:add", "diorite|" +MD.GT.mID+":gt.stone.diorite|0");
823// FMLInterModComms.sendRuntimeMessage(GAPI, "ChiselAPI|Carving", "variation:add", "andesite|"+MD.GT.mID+":gt.stone.andesite|0");
824// }
825// }
826
827 // Saving the Lang File.
828 LanguageHandler.save();
829
830 if (mPlayerLogger != null) new Thread(mPlayerLogger).start();

Callers

nothing calls this directly

Calls 14

checkAvailabilitiesMethod · 0.95
checkAvailabilitiesMethod · 0.95
checkAvailabilitiesMethod · 0.95
getModNameForLogMethod · 0.95
putMethod · 0.95
makeMethod · 0.95
applyAllStackSizesMethod · 0.95
saveMethod · 0.95
printlnMethod · 0.80
startMethod · 0.80
printMethod · 0.80

Tested by

no test coverage detected