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 TickTimer
addAction(Runnable action)
String
getName()
int
getTps()
boolean
isAlive()
boolean
isPaused()
void
pause()
TickTimer
removeAction(Runnable action)
void
setExceptionHandler(BiConsumer<TickTimer,Throwable> exceptionHandler)
void
shutdown()
void
start()
-
-
-
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)
-
-