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 Runnablestatic <E extends Event>
voidSchedules a Consumer to be called after a certain amount of polls from the given eventstatic voidof(Class, int, Runnable)with TickEvent.End
-
Method Details
-
of
Schedules a Consumer to be called after a certain amount of polls from the given eventIf the amount of polls is below 1 the Consumer is called immediately with a null event
-
of
of(Class, int, Consumer)with a Runnable -
tick
of(Class, int, Runnable)with TickEvent.End
-