Enum ModLoadingStage

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ModLoadingStage>

    public enum ModLoadingStage
    extends java.lang.Enum<ModLoadingStage>
    • Field Detail

      • parallelEventClass

        private final java.util.Optional<java.lang.Class<? extends ParallelDispatchEvent>> parallelEventClass
      • finalActivityGenerator

        private final java.util.function.BiFunction<java.util.concurrent.Executor,​java.util.concurrent.CompletableFuture<java.util.List<java.lang.Throwable>>,​java.util.concurrent.CompletableFuture<java.util.List<java.lang.Throwable>>> finalActivityGenerator
      • preDispatchHook

        private final java.util.function.BiFunction<java.util.concurrent.Executor,​? extends ModLoadingStage.EventGenerator<?>,​java.util.concurrent.CompletableFuture<java.util.List<java.lang.Throwable>>> preDispatchHook
      • postDispatchHook

        private final java.util.function.BiFunction<java.util.concurrent.Executor,​? extends ModLoadingStage.EventGenerator<?>,​java.util.concurrent.CompletableFuture<java.util.List<java.lang.Throwable>>> postDispatchHook
    • Constructor Detail

      • ModLoadingStage

        private ModLoadingStage​(java.lang.Class<? extends ParallelDispatchEvent> parallelClass)
      • ModLoadingStage

        private ModLoadingStage​(java.util.function.Supplier<java.util.stream.Stream<ModLoadingStage.EventGenerator<?>>> eventStream,
                                java.util.function.BiFunction<java.util.concurrent.Executor,​? extends ModLoadingStage.EventGenerator<T>,​java.util.concurrent.CompletableFuture<java.util.List<java.lang.Throwable>>> preDispatchHook,
                                java.util.function.BiFunction<java.util.concurrent.Executor,​? extends ModLoadingStage.EventGenerator<T>,​java.util.concurrent.CompletableFuture<java.util.List<java.lang.Throwable>>> postDispatchHook,
                                java.util.function.BiFunction<java.util.concurrent.Executor,​java.util.concurrent.CompletableFuture<java.util.List<java.lang.Throwable>>,​java.util.concurrent.CompletableFuture<java.util.List<java.lang.Throwable>>> finalActivityGenerator)
      • ModLoadingStage

        private ModLoadingStage()
    • Method Detail

      • values

        public static ModLoadingStage[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ModLoadingStage c : ModLoadingStage.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ModLoadingStage valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • buildTransition

        public <T extends net.minecraftforge.eventbus.api.Event & IModBusEvent> java.util.concurrent.CompletableFuture<java.util.List<java.lang.Throwable>> buildTransition​(java.util.concurrent.Executor syncExecutor,
                                                                                                                                                                            java.util.concurrent.Executor parallelExecutor)
      • buildTransition

        public <T extends net.minecraftforge.eventbus.api.Event & IModBusEvent> java.util.concurrent.CompletableFuture<java.util.List<java.lang.Throwable>> buildTransition​(java.util.concurrent.Executor syncExecutor,
                                                                                                                                                                            java.util.concurrent.Executor parallelExecutor,
                                                                                                                                                                            java.util.function.Function<java.util.concurrent.Executor,​java.util.concurrent.CompletableFuture<java.lang.Void>> preSyncTask,
                                                                                                                                                                            java.util.function.Function<java.util.concurrent.Executor,​java.util.concurrent.CompletableFuture<java.lang.Void>> postSyncTask)
      • currentState

        ModLoadingStage currentState​(java.lang.Throwable exception)
      • getParallelEventClass

        public java.util.Optional<java.lang.Class<? extends ParallelDispatchEvent>> getParallelEventClass()