[1.21.1] Optionally supply FMLJavaModLoadingContext as a param to mod constructors (#10074)

Also made `FMLJavaModLoadingContext` extend `ModLoadingContext`. See the PR description for example usage.
This commit is contained in:
RealMangoRage authored and GitHub committed 2024-08-25 21:38:31 +01:00
1 parent 26d0f7282f
commit 419c349a1f
21 files changed
+138 -79

No files matched your search

@@ -8,6 +8,10 @@ package net.minecraftforge.fml.event.lifecycle;
import net.minecraftforge.fml.ModContainer;
import net.minecraftforge.fml.ModLoadingStage;
/**
* Supplied as a param to your mod's constructor to get access
* to the mod EventBus and various mod-specific objects.
*/
public class FMLConstructModEvent extends ParallelDispatchEvent {
public FMLConstructModEvent(final ModContainer container, final ModLoadingStage stage) {
super(container, stage);