Package co.aikar.timings
Class TimedEventExecutor
java.lang.Object
co.aikar.timings.TimedEventExecutor
- All Implemented Interfaces:
EventExecutor
-
Field Summary
Fields inherited from interface org.bukkit.plugin.EventExecutor
eventExecutorMap
-
Constructor Summary
ConstructorDescriptionTimedEventExecutor
(@NotNull EventExecutor executor, @NotNull Plugin plugin, @Nullable Method method, @NotNull Class<? extends Event> eventClass) Wraps an event executor and associates a timing handler to it. -
Method Summary
-
Constructor Details
-
TimedEventExecutor
public TimedEventExecutor(@NotNull @NotNull EventExecutor executor, @NotNull @NotNull Plugin plugin, @Nullable @Nullable Method method, @NotNull @NotNull Class<? extends Event> eventClass) Wraps an event executor and associates a timing handler to it.- Parameters:
executor
- Executor to wrapplugin
- Owning pluginmethod
- EventHandler methodeventClass
- Owning class
-
-
Method Details
-
execute
public void execute(@NotNull @NotNull Listener listener, @NotNull @NotNull Event event) throws EventException - Specified by:
execute
in interfaceEventExecutor
- Throws:
EventException
-