MCPcopy Create free account
hub / github.com/GregTech6/gregtech6 / onPostLoad

Method onPostLoad

src/main/java/gregtech/GT6_Main.java:178–205  ·  view source on GitHub ↗
(FMLPostInitializationEvent aInitEvent)

Source from the content-addressed store, hash-verified

176// new Loader_Sonictron().run();
177
178 new CompatMods(MD.MC, this) {@Override public void onPostLoad(FMLPostInitializationEvent aInitEvent) {
179 // We ain't got Water in that Water Bottle. That would be an infinite Water Exploit.
180 for (FluidContainerData tData : FluidContainerRegistry.getRegisteredFluidContainerData()) if (tData.filledContainer.getItem() == Items.potionitem && ST.meta_(tData.filledContainer) == 0) {tData.fluid.amount = 0; break;}
181
182 ArrayListNoNulls<Runnable> tList = new ArrayListNoNulls<>(F,
183 new Loader_BlockResistance(),
184 new Loader_Fuels(),
185 new Loader_Loot(),
186
187 new Loader_Recipes_Furnace(), // has to be before everything else!
188 new Loader_Recipes_Woods(), // has to be before Vanilla!
189 new Loader_Recipes_Vanilla(), // has to be after Woods!
190 new Loader_Recipes_Temporary(),
191 new Loader_Recipes_Chem(),
192 new Loader_Recipes_Crops(),
193 new Loader_Recipes_Potions(),
194 new Loader_Recipes_Food(),
195 new Loader_Recipes_Ores(),
196 new Loader_Recipes_Alloys(),
197 new Loader_Recipes_Other(),
198
199 new Loader_Recipes_Extruder(),
200
201 new Loader_Recipes_Hints()
202 );
203
204 for (Runnable tRunnable : tList) try {tRunnable.run();} catch(Throwable e) {e.printStackTrace(ERR);}
205 }};
206
207 new Compat_Recipes_Ganys (MD.GAPI , this);
208 new Compat_Recipes_Chisel (MD.CHSL , this);

Callers

nothing calls this directly

Calls 4

meta_Method · 0.95
onModPostInitMethod · 0.80
getItemMethod · 0.65
runMethod · 0.45

Tested by

no test coverage detected