|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.util.Timer
public class Timer
Field Summary | |
---|---|
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 Summary | |
---|---|
Timer(float par1)
|
Method Summary | |
---|---|
void |
updateTimer()
Updates all fields of the Timer using the current time |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int elapsedTicks
public float renderPartialTicks
public float timerSpeed
public float elapsedPartialTicks
Constructor Detail |
---|
public Timer(float par1)
Method Detail |
---|
public void updateTimer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |