mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-16 18:45:09 +00:00
Fix up event naming, move them to sensible packages and document everything a bit.
This commit is contained in:
1 parent
220bf8730a
commit
56a3926b86
95 files changed
+333
-251
No files matched your search
@@ -19,7 +19,7 @@
|
||||
|
||||
package net.minecraftforge.fml;
|
||||
|
||||
import net.minecraftforge.fml.common.event.ModLifecycleEvent;
|
||||
import net.minecraftforge.fml.event.lifecycle.ModLifecycleEvent;
|
||||
import net.minecraftforge.fml.javafmlmod.FMLModContainer;
|
||||
import net.minecraftforge.forgespi.language.ILifecycleEvent;
|
||||
|
||||
@@ -30,10 +30,10 @@ import java.util.function.Supplier;
|
||||
public enum LifecycleEventProvider
|
||||
{
|
||||
CONSTRUCT(()->new LifecycleEvent(ModLoadingStage.CONSTRUCT)),
|
||||
PREINIT(()->new LifecycleEvent(ModLoadingStage.PREINIT)),
|
||||
SIDEDINIT(()->new LifecycleEvent(ModLoadingStage.SIDEDINIT)),
|
||||
INIT(()->new LifecycleEvent(ModLoadingStage.INIT)),
|
||||
POSTINIT(()->new LifecycleEvent(ModLoadingStage.POSTINIT)),
|
||||
SETUP(()->new LifecycleEvent(ModLoadingStage.COMMON_SETUP)),
|
||||
SIDED_SETUP(()->new LifecycleEvent(ModLoadingStage.SIDED_SETUP)),
|
||||
ENQUEUE_IMC(()->new LifecycleEvent(ModLoadingStage.ENQUEUE_IMC)),
|
||||
PROCESS_IMC(()->new LifecycleEvent(ModLoadingStage.PROCESS_IMC)),
|
||||
COMPLETE(()->new LifecycleEvent(ModLoadingStage.COMPLETE));
|
||||
|
||||
public void dispatch(Consumer<List<ModLoadingException>> errorHandler) {
|
||||
|
||||
Reference in new issue
Block a user