Class EventExecutorFactory

java.lang.Object
io.papermc.paper.event.executor.EventExecutorFactory

@Internal @NullMarked public final class EventExecutorFactory extends Object
  • Method Details

    • create

      public static EventExecutor create(Method method, Class<? extends Event> eventClass)
      Returns an EventExecutor implemented by a hidden class calling a method handle.
      Parameters:
      method - the method to be invoked by the created event executor
      eventClass - the class of the event to handle
      Returns:
      an EventExecutor implemented by a hidden class calling a method handle