Class EventFactory

java.lang.Object
dev.architectury.event.EventFactory

public final class EventFactory extends Object
  • Method Details

    • of

      public static <T> Event<T> of(Function<List<T>,T> function)
    • createLoop

      @SafeVarargs public static <T> Event<T> createLoop(T... typeGetter)
    • createLoop

      public static <T> Event<T> createLoop(Class<T> clazz)
    • createEventResult

      @SafeVarargs public static <T> Event<T> createEventResult(T... typeGetter)
    • createEventResult

      public static <T> Event<T> createEventResult(Class<T> clazz)
    • createCompoundEventResult

      @SafeVarargs public static <T> Event<T> createCompoundEventResult(T... typeGetter)
    • createCompoundEventResult

      public static <T> Event<T> createCompoundEventResult(Class<T> clazz)
    • createConsumerLoop

      @SafeVarargs public static <T> Event<Consumer<T>> createConsumerLoop(T... typeGetter)
    • createConsumerLoop

      public static <T> Event<Consumer<T>> createConsumerLoop(Class<T> clazz)
    • createEventActorLoop

      @SafeVarargs public static <T> Event<EventActor<T>> createEventActorLoop(T... typeGetter)
    • createEventActorLoop

      public static <T> Event<EventActor<T>> createEventActorLoop(Class<T> clazz)
    • attachToForge

      @Internal public static <T> Event<Consumer<T>> attachToForge(Event<Consumer<T>> event)
    • attachToForgeEventActor

      @Internal public static <T> Event<EventActor<T>> attachToForgeEventActor(Event<EventActor<T>> event)
    • attachToForgeEventActorCancellable

      @Internal public static <T> Event<EventActor<T>> attachToForgeEventActorCancellable(Event<EventActor<T>> event)