Package org.polyfrost.polyui.utils
Class Clock.UntilExecutor
-
- All Implemented Interfaces:
public final class Clock.UntilExecutor extends Clock.Executor
An executor that will do its function until the given amount of time has passed.
-
-
Field Summary
Fields Modifier and Type Field Description private final Booleanfinishedprivate final LongexecuteForNanosprivate final LongexecuteEveryNanos
-
Constructor Summary
Constructors Constructor Description Clock.UntilExecutor(Long executeEveryNanos, Long executeForNanos, Function0<Unit> func)
-
Method Summary
Modifier and Type Method Description BooleangetFinished()final LonggetExecuteForNanos()Booleantick(Long deltaTimeNanos)Update this Executor, and execute it if the given amount of time has passed. -
-
Method Detail
-
getFinished
Boolean getFinished()
-
getExecuteForNanos
final Long getExecuteForNanos()
-
-
-
-