Package org.polyfrost.polyui.utils
Class Clock.Executor
-
- All Implemented Interfaces:
public abstract class Clock.ExecutorCreate a new Executor.
- Since:
0.14.0
-
-
Field Summary
Fields Modifier and Type Field Description private final Booleanfinishedprivate final LongexecuteEveryNanos
-
Constructor Summary
Constructors Constructor Description Clock.Executor(Long executeEveryNanos, Function0<Unit> func)
-
Method Summary
Modifier and Type Method Description BooleangetFinished()final LonggetExecuteEveryNanos()Longtick(Long deltaTimeNanos)Update this Executor, and execute it if the given amount of time has passed. -
-
Method Detail
-
getFinished
Boolean getFinished()
-
getExecuteEveryNanos
final Long getExecuteEveryNanos()
-
-
-
-