Package net.minecraft.src
Class Timer
java.lang.Object
net.minecraft.src.Timer
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatHow much time has elapsed since the last tick, in ticks (range: 0.0 - 1.0).intHow many full ticks have turned over since the last call to updateTimer(), capped at 10.floatHow much time has elapsed since the last tick, in ticks, for use by display rendering routines (range: 0.0 - 1.0).floatA multiplier to make the timer (and therefore the game) go faster or slower. 0.5 makes the game run at half- speed. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatvoidvoidsetTimerSpeedTarget(float timerSpeed) voidUpdates all fields of the Timer using the current time
-
Field Details
-
elapsedTicks
public int elapsedTicksHow many full ticks have turned over since the last call to updateTimer(), capped at 10. -
renderPartialTicks
public float renderPartialTicksHow much time has elapsed since the last tick, in ticks, for use by display rendering routines (range: 0.0 - 1.0). This field is frozen if the display is paused to eliminate jitter. -
timerSpeed
public float timerSpeedA multiplier to make the timer (and therefore the game) go faster or slower. 0.5 makes the game run at half- speed. -
elapsedPartialTicks
public float elapsedPartialTicksHow much time has elapsed since the last tick, in ticks (range: 0.0 - 1.0).
-
-
Constructor Details
-
Timer
public Timer(float par1)
-
-
Method Details
-
updateTimer
public void updateTimer()Updates all fields of the Timer using the current time -
resetTimerSpeed
public void resetTimerSpeed() -
getTimerSpeed
public float getTimerSpeed() -
setTimerSpeedTarget
public void setTimerSpeedTarget(float timerSpeed)
-