Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
TickingThread() |
TickingThread(String name) |
TickingThread(ThreadGroup group,
String name) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCurrentTick() |
float |
getTicksPerSecond() |
float |
getTicksPerSecondAverage() |
float |
getTickUsage() |
float |
getTickUsageAverage() |
void |
run() |
void |
terminate() |
protected abstract void |
tick(int currentTick) |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic TickingThread()
public TickingThread(String name)
public TickingThread(ThreadGroup group, String name)
public float getTicksPerSecond()
public float getTicksPerSecondAverage()
public float getTickUsage()
public float getTickUsageAverage()
public int getCurrentTick()
public void terminate()
protected abstract void tick(int currentTick)
Copyright © 2020. All rights reserved.