Class ParallelDispatchEvent

    • Nested Class Summary

      • Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event

        net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
    • 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.eventbus.api.Event

        getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ParallelDispatchEvent

        public ParallelDispatchEvent​(ModContainer container)
    • Method Detail

      • 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)