Package org.polyfrost.polyui.utils
Class Clock.Bomb
-
- All Implemented Interfaces:
-
org.polyfrost.polyui.utils.Clock.Executor
public final class Clock.Bomb implements Clock.Executor
An executor that will execute a function after a certain amount of time.
- Since:
1.5.0
-
-
Field Summary
Fields Modifier and Type Field Description private final LongtimerNanosprivate final Function0<Unit>func
-
Constructor Summary
Constructors Constructor Description Clock.Bomb(Long timerNanos, Function0<Unit> func)
-
Method Summary
-
-
Method Detail
-
getTimerNanos
final Long getTimerNanos()
-
tick
Long tick(Long deltaTimeNanos)
Update this Executor.
- Returns:
the time remaining until the next execution, or a negative number if it no longer needs to be executed and can be removed.
-
-
-
-