Class EventExecutorFactory
java.lang.Object
io.papermc.paper.event.executor.EventExecutorFactory
-
Method Summary
Modifier and TypeMethodDescriptionstatic EventExecutorCreates anEventExecutorimplemented by a hidden class calling a method handle.
-
Method Details
-
create
Creates anEventExecutorimplemented by a hidden class calling a method handle.- Parameters:
method- the method to be invoked by the created event executoreventClass- the class of the event to handle- Returns:
- the event executor
- Throws:
AssertionError- if the hidden class cannot be defined or instantiated
-