public class Timer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
float |
elapsedPartialTicks
How much time has elapsed since the last tick, in ticks (range: 0.0 - 1.0).
|
int |
elapsedTicks
How many full ticks have turned over since the last call to updateTimer(), capped at 10.
|
float |
renderPartialTicks
How much time has elapsed since the last tick, in ticks, for use by display rendering routines (range: 0.0 -
1.0).
|
float |
timerSpeed
A multiplier to make the timer (and therefore the game) go faster or slower.
|
Constructor and Description |
---|
Timer(float tps) |
Modifier and Type | Method and Description |
---|---|
void |
updateTimer()
Updates all fields of the Timer using the current time
|
public int elapsedTicks
public float renderPartialTicks
public float timerSpeed
public float elapsedPartialTicks