YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.util.Timer Class Reference

Public Member Functions

 Timer (float par1)
 
void updateTimer ()
 

Public Attributes

int elapsedTicks
 
float renderPartialTicks
 
float timerSpeed = 1.0F
 
float elapsedPartialTicks = 0.0F
 

Constructor & Destructor Documentation

net.minecraft.util.Timer.Timer ( float  par1)

Member Function Documentation

void net.minecraft.util.Timer.updateTimer ( )

Updates all fields of the Timer using the current time

Member Data Documentation

float net.minecraft.util.Timer.elapsedPartialTicks = 0.0F

How much time has elapsed since the last tick, in ticks (range: 0.0 - 1.0).

int net.minecraft.util.Timer.elapsedTicks

How many full ticks have turned over since the last call to updateTimer(), capped at 10.

float net.minecraft.util.Timer.renderPartialTicks

How 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.

float net.minecraft.util.Timer.timerSpeed = 1.0F

A multiplier to make the timer (and therefore the game) go faster or slower. 0.5 makes the game run at half- speed.


The documentation for this class was generated from the following file: