Class ClientCountdownManager.ClientCountdown
java.lang.Object
dev.bouncingelf10.timelesslib.api.countdown.ClientCountdownManager.ClientCountdown
- Enclosing class:
ClientCountdownManager<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancancel()displayToUser(TimeFormat format, String prefix, String suffix) id()booleanbooleanbooleanisPaused()onThreshold(Duration threshold, Consumer<T> handler) onTick(BiConsumer<T, Duration> handler) booleanpause()booleanbooleanresume()
-
Constructor Details
-
ClientCountdown
-
-
Method Details
-
onTick
-
onFinish
-
onThreshold
public ClientCountdownManager<T>.ClientCountdown onThreshold(Duration threshold, Consumer<T> handler) -
every
-
pause
public boolean pause() -
resume
public boolean resume() -
cancel
public boolean cancel() -
pauseOrUnpause
public boolean pauseOrUnpause() -
isPaused
public boolean isPaused() -
isCancelled
public boolean isCancelled() -
isFinished
public boolean isFinished() -
remaining
-
id
-
displayToUser
-
displayToUser
public ClientCountdownManager<T>.ClientCountdown displayToUser(TimeFormat format, String prefix, String suffix)
-