(FMLPreInitializationEvent aEvent)
| 92 | } |
| 93 | |
| 94 | @Override |
| 95 | public void onModPreInit2(FMLPreInitializationEvent aEvent) { |
| 96 | try { |
| 97 | LoadController tLoadController = ((LoadController)UT.Reflection.getFieldContent(Loader.instance(), "modController", T, T)); |
| 98 | List<ModContainer> tModList = tLoadController.getActiveModList(), tNewModsList = new ArrayList<>(tModList.size()); |
| 99 | ModContainer tGregTech = null; |
| 100 | for (short i = 0; i < tModList.size(); i++) { |
| 101 | ModContainer tMod = tModList.get(i); |
| 102 | if (tMod.getModId().equalsIgnoreCase(MD.GT.mID)) tGregTech = tMod; else tNewModsList.add(tMod); |
| 103 | } |
| 104 | if (tGregTech != null) tNewModsList.add(tGregTech); |
| 105 | UT.Reflection.setFieldContent(tLoadController, "activeModList", tNewModsList); |
| 106 | } catch(Throwable e) { |
| 107 | e.printStackTrace(ERR); |
| 108 | } |
| 109 | |
| 110 | gt_proxy.mSkeletonsShootGTArrows = ConfigsGT.GREGTECH.get("general", "SkeletonsShootGTArrows", 16); |
| 111 | gt_proxy.mFlintChance = (int)UT.Code.bind(1, 100, ConfigsGT.GREGTECH.get("general", "FlintAndSteelChance", 30)); |
| 112 | gt_proxy.mDisableVanillaOres = ConfigsGT.GREGTECH.get("general", "DisableVanillaOres" , T); |
| 113 | gt_proxy.mDisableVanillaLakes = ConfigsGT.GREGTECH.get("general", "DisableVanillaLakes" , T); |
| 114 | mDisableIC2Ores = ConfigsGT.GREGTECH.get("general", "DisableIC2Ores" , T); |
| 115 | BlockOcean.SPREAD_TO_AIR = ConfigsGT.GREGTECH.get("general", "OceanBlocksSpreadToAir", F); |
| 116 | BlockOcean.FLOWS_OUT = ConfigsGT.GREGTECH.get("general", "OceanBlocksFlowOutFar" , F); |
| 117 | BlockSwamp.FLOWS_OUT = ConfigsGT.GREGTECH.get("general", "SwampBlocksFlowOutFar" , F); |
| 118 | BlockRiver.FLOWS_OUT = ConfigsGT.GREGTECH.get("general", "RiverBlocksFlowOutFar" , F); |
| 119 | |
| 120 | if (COMPAT_IC2 != null && !MD.IC2C.mLoaded) { |
| 121 | OUT.println(getModNameForLog() + ": Removing all original Scrapbox Drops."); |
| 122 | try { |
| 123 | UT.Reflection.getField("ic2.core.item.ItemScrapbox$Drop", "topChance", T, T).set(null, 0); |
| 124 | ((List<?>)UT.Reflection.getFieldContent(UT.Reflection.getFieldContent("ic2.api.recipe.Recipes", "scrapboxDrops", T, T), "drops", T, T)).clear(); |
| 125 | } catch(Throwable e) { |
| 126 | e.printStackTrace(ERR); |
| 127 | } |
| 128 | OUT.println(getModNameForLog() + ": Adding Scrap with a Weight of 200.0F to the Scrapbox Drops."); |
| 129 | COMPAT_IC2.scrapbox(200.0F, IL.IC2_Scrap.get(1)); |
| 130 | } |
| 131 | |
| 132 | EntityRegistry.registerModEntity(EntityArrow_Material.class, "GT_Entity_Arrow" , 1, GT, 160, 1, T); |
| 133 | EntityRegistry.registerModEntity(EntityArrow_Potion.class , "GT_Entity_Arrow_Potion", 2, GT, 160, 1, T); |
| 134 | |
| 135 | for (OreDictMaterial tWood : ANY.Wood.mToThis) OP.plate.disableItemGeneration(tWood); |
| 136 | OP.blockDust .disableItemGeneration(MT.OREMATS.Magnetite, MT.OREMATS.GraniticMineralSand, MT.OREMATS.BasalticMineralSand); |
| 137 | OP.ingot .disableItemGeneration(MT.Butter, MT.ButterSalted, MT.Chocolate, MT.Cheese, MT.MeatRaw, MT.MeatCooked, MT.FishRaw, MT.FishCooked, MT.Tofu, MT.SoylentGreen); |
| 138 | OP.gemChipped .disableItemGeneration(MT.EnergiumRed, MT.EnergiumCyan); |
| 139 | OP.gemFlawed .disableItemGeneration(MT.EnergiumRed, MT.EnergiumCyan); |
| 140 | OP.gem .disableItemGeneration(MT.EnergiumRed, MT.EnergiumCyan); |
| 141 | OP.gemFlawless .disableItemGeneration(MT.EnergiumRed, MT.EnergiumCyan); |
| 142 | OP.gemExquisite .disableItemGeneration(MT.EnergiumRed, MT.EnergiumCyan); |
| 143 | OP.gemLegendary .disableItemGeneration(MT.EnergiumRed, MT.EnergiumCyan); |
| 144 | |
| 145 | OP.crushed .disableItemGeneration(MT.Ad, MT.Fe, MT.Si, MT.Al, MT.Ti, MT.W, MT.F, MT.Ta, MT.Nb, MT.Dilithium); |
| 146 | OP.crushedTiny .disableItemGeneration(MT.Ad, MT.Fe, MT.Si, MT.Al, MT.Ti, MT.W, MT.F, MT.Ta, MT.Nb, MT.Dilithium); |
| 147 | OP.crushedPurified .disableItemGeneration(MT.Ad, MT.Fe, MT.Si, MT.Al, MT.Ti, MT.W, MT.F, MT.Ta, MT.Nb, MT.Dilithium); |
| 148 | OP.crushedPurifiedTiny .disableItemGeneration(MT.Ad, MT.Fe, MT.Si, MT.Al, MT.Ti, MT.W, MT.F, MT.Ta, MT.Nb, MT.Dilithium); |
| 149 | OP.crushedCentrifuged .disableItemGeneration(MT.Ad, MT.Fe, MT.Si, MT.Al, MT.Ti, MT.W, MT.F, MT.Ta, MT.Nb, MT.Dilithium); |
| 150 | OP.crushedCentrifugedTiny.disableItemGeneration(MT.Ad, MT.Fe, MT.Si, MT.Al, MT.Ti, MT.W, MT.F, MT.Ta, MT.Nb, MT.Dilithium); |
| 151 |
nothing calls this directly
no test coverage detected