public enum LifecycleEventProvider extends java.lang.Enum<LifecycleEventProvider>
Modifier and Type | Class and Description |
---|---|
static class |
LifecycleEventProvider.LifecycleEvent |
Enum Constant and Description |
---|
COMPLETE |
CONSTRUCT |
CREATE_REGISTRIES |
ENQUEUE_IMC |
LOAD_REGISTRIES |
PROCESS_IMC |
SETUP |
SIDED_SETUP |
Modifier and Type | Method and Description |
---|---|
void |
changeProgression(LifecycleEventProvider.LifecycleEvent.Progression progression) |
void |
dispatch(java.util.function.Consumer<java.util.List<ModLoadingException>> errorHandler) |
void |
setCustomEventSupplier(java.util.function.Supplier<net.minecraftforge.eventbus.api.Event> eventSupplier) |
static LifecycleEventProvider |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LifecycleEventProvider[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LifecycleEventProvider CONSTRUCT
public static final LifecycleEventProvider CREATE_REGISTRIES
public static final LifecycleEventProvider LOAD_REGISTRIES
public static final LifecycleEventProvider SETUP
public static final LifecycleEventProvider SIDED_SETUP
public static final LifecycleEventProvider ENQUEUE_IMC
public static final LifecycleEventProvider PROCESS_IMC
public static final LifecycleEventProvider COMPLETE
public static LifecycleEventProvider[] values()
for (LifecycleEventProvider c : LifecycleEventProvider.values()) System.out.println(c);
public static LifecycleEventProvider valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic void setCustomEventSupplier(java.util.function.Supplier<net.minecraftforge.eventbus.api.Event> eventSupplier)
public void changeProgression(LifecycleEventProvider.LifecycleEvent.Progression progression)
public void dispatch(java.util.function.Consumer<java.util.List<ModLoadingException>> errorHandler)