public enum LifecycleEventProvider extends java.lang.Enum<LifecycleEventProvider>
Modifier and Type | Class and Description |
---|---|
static interface |
LifecycleEventProvider.EventHandler<T extends LifecycleEventProvider.LifecycleEvent,U extends java.util.function.Consumer<? extends java.util.List<? super ModLoadingException>>,V extends java.util.concurrent.Executor,R extends java.lang.Runnable> |
private static class |
LifecycleEventProvider.GatherDataLifecycleEvent |
static class |
LifecycleEventProvider.LifecycleEvent |
Enum Constant and Description |
---|
COMPLETE |
CONSTRUCT |
CREATE_REGISTRIES |
ENQUEUE_IMC |
GATHERDATA |
LOAD_REGISTRIES |
PROCESS_IMC |
SETUP |
SIDED_SETUP |
Modifier and Type | Field and Description |
---|---|
private java.util.function.Supplier<net.minecraftforge.eventbus.api.Event> |
customEventSupplier |
private java.util.function.Supplier<? extends LifecycleEventProvider.LifecycleEvent> |
event |
private LifecycleEventProvider.EventHandler<LifecycleEventProvider.LifecycleEvent,java.util.function.Consumer<java.util.List<ModLoadingException>>,java.util.concurrent.Executor,java.lang.Runnable> |
eventDispatcher |
private LifecycleEventProvider.LifecycleEvent.Progression |
progression |
Modifier and Type | Method and Description |
---|---|
void |
changeProgression(LifecycleEventProvider.LifecycleEvent.Progression progression) |
void |
dispatch(java.util.function.Consumer<java.util.List<ModLoadingException>> errorHandler,
java.util.concurrent.Executor executor,
java.lang.Runnable ticker) |
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 final LifecycleEventProvider GATHERDATA
private final java.util.function.Supplier<? extends LifecycleEventProvider.LifecycleEvent> event
private final LifecycleEventProvider.EventHandler<LifecycleEventProvider.LifecycleEvent,java.util.function.Consumer<java.util.List<ModLoadingException>>,java.util.concurrent.Executor,java.lang.Runnable> eventDispatcher
private java.util.function.Supplier<net.minecraftforge.eventbus.api.Event> customEventSupplier
private LifecycleEventProvider.LifecycleEvent.Progression progression
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, java.util.concurrent.Executor executor, java.lang.Runnable ticker)