Class ParallelDispatchEvent
- java.lang.Object
-
- net.minecraftforge.eventbus.api.Event
-
- net.minecraftforge.fml.event.lifecycle.ModLifecycleEvent
-
- net.minecraftforge.fml.event.lifecycle.ParallelDispatchEvent
-
- All Implemented Interfaces:
IModBusEvent
- Direct Known Subclasses:
FMLClientSetupEvent
,FMLCommonSetupEvent
,FMLConstructModEvent
,FMLDedicatedServerSetupEvent
,FMLLoadCompleteEvent
,InterModEnqueueEvent
,InterModProcessEvent
public class ParallelDispatchEvent extends ModLifecycleEvent
-
-
Constructor Summary
Constructors Constructor Description ParallelDispatchEvent(ModContainer container)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<java.lang.Void>
enqueueWork(java.lang.Runnable work)
<T> java.util.concurrent.CompletableFuture<T>
enqueueWork(java.util.function.Supplier<T> work)
private java.util.Optional<DeferredWorkQueue>
getQueue()
-
Methods inherited from class net.minecraftforge.fml.event.lifecycle.ModLifecycleEvent
description, getContainer, getIMCStream, getIMCStream, toString
-
-
-
-
Constructor Detail
-
ParallelDispatchEvent
public ParallelDispatchEvent(ModContainer container)
-
-
Method Detail
-
getQueue
private java.util.Optional<DeferredWorkQueue> getQueue()
-
enqueueWork
public java.util.concurrent.CompletableFuture<java.lang.Void> enqueueWork(java.lang.Runnable work)
-
enqueueWork
public <T> java.util.concurrent.CompletableFuture<T> enqueueWork(java.util.function.Supplier<T> work)
-
-