Class EventDelay
java.lang.Object
org.polyfrost.oneconfig.api.event.v1.EventDelay
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends Event>
voidof(Class, int, Consumer)with a Runnable.static <E extends Event>
voidSchedules a Consumer to be called after a certain amount polls from the given event.static voidof(Class, int, Runnable)with TickEvent.End.
-
Method Details
-
of
Schedules a Consumer to be called after a certain amount polls from the given event.If the amount of polls is below 1, the Consumer will be called immediately, with the event being null.
-
of
of(Class, int, Consumer)with a Runnable. -
tick
of(Class, int, Runnable)with TickEvent.End.
-