Class TickTimer
- java.lang.Object
-
- me.nemo_64.betterinputs.api.util.tick.TickTimer
-
public final class TickTimer extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TickTimeraddAction(Runnable action)StringgetName()intgetTps()booleanisAlive()booleanisPaused()voidpause()TickTimerremoveAction(Runnable action)voidsetExceptionHandler(BiConsumer<TickTimer,Throwable> exceptionHandler)voidshutdown()voidstart()
-
-
-
Constructor Detail
-
TickTimer
public TickTimer(String name)
-
-
Method Detail
-
getName
public String getName()
-
shutdown
public void shutdown()
-
pause
public void pause()
-
start
public void start()
-
isPaused
public boolean isPaused()
-
isAlive
public boolean isAlive()
-
getTps
public int getTps()
-
setExceptionHandler
public void setExceptionHandler(BiConsumer<TickTimer,Throwable> exceptionHandler)
-
-