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

Method onLoad

src/main/java/gregapi/GT_API.java:247–260  ·  view source on GitHub ↗
(FMLInitializationEvent aEvent)

Source from the content-addressed store, hash-verified

245 }
246
247 @Mod.EventHandler
248 public void onLoad(FMLInitializationEvent aEvent) {
249 for (OreDictMaterial tMaterial : OreDictMaterial.MATERIAL_ARRAY) if (tMaterial != null && !tMaterial.contains(TD.Properties.INVALID_MATERIAL)) {
250 tMaterial.mOreProcessingMultiplier = UT.Code.bindStack(ConfigsGT.OREPROCESSING.get(ConfigCategories.Materials.oreprocessingoutputmultiplier, tMaterial.mNameInternal, 1));
251 tMaterial.mOreMultiplier = (byte)ConfigsGT.MATERIAL.get(tMaterial.mNameInternal, "MultiplierOre", tMaterial.mOreMultiplier);
252 tMaterial.mToolQuality = (byte)ConfigsGT.MATERIAL.get(tMaterial.mNameInternal, "ToolQuality", tMaterial.mToolQuality);
253 if (tMaterial.mToolTypes > 0) {
254 tMaterial.mToolSpeed = (float)ConfigsGT.MATERIAL.get(tMaterial.mNameInternal, "ToolSpeed", tMaterial.mToolSpeed);
255 tMaterial.mToolDurability = ConfigsGT.MATERIAL.get(tMaterial.mNameInternal, "ToolDurability", tMaterial.mToolDurability);
256 tMaterial.mHandleMaterial = OreDictMaterial.get(ConfigsGT.MATERIAL.get(tMaterial.mNameInternal, "ToolHandle", tMaterial.mHandleMaterial.mNameInternal));
257 }
258 }
259 onModInit(aEvent);
260 }
261
262// @SubscribeEvent
263// @Mod.EventHandler

Callers

nothing calls this directly

Calls 5

getMethod · 0.95
bindStackMethod · 0.80
onModInitMethod · 0.80
containsMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected