Package net.minecraft.client
Class DeltaTracker.Timer
java.lang.Object
net.minecraft.client.DeltaTracker.Timer
- All Implemented Interfaces:
DeltaTracker
- Enclosing interface:
DeltaTracker
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.DeltaTracker
DeltaTracker.DefaultValue, DeltaTracker.Timer
-
Field Summary
Modifier and TypeFieldDescriptionprivate float
private float
private boolean
private long
private long
private final float
private boolean
private float
private float
private final it.unimi.dsi.fastutil.floats.FloatUnaryOperator
Fields inherited from interface net.minecraft.client.DeltaTracker
ONE, ZERO
-
Constructor Summary
ConstructorDescriptionTimer
(float p_343882_, long p_344080_, it.unimi.dsi.fastutil.floats.FloatUnaryOperator p_343677_) -
Method Summary
Modifier and TypeMethodDescriptionprivate int
advanceGameTime
(long p_342679_) private void
advanceRealTime
(long p_342368_) int
advanceTime
(long p_343106_, boolean p_342855_) float
getGameTimeDeltaPartialTick
(boolean p_344876_) float
float
private void
pause()
private void
unPause()
void
updateFrozenState
(boolean p_344005_) void
updatePauseState
(boolean p_342098_)
-
Field Details
-
deltaTicks
private float deltaTicks -
deltaTickResidual
private float deltaTickResidual -
realtimeDeltaTicks
private float realtimeDeltaTicks -
pausedDeltaTickResidual
private float pausedDeltaTickResidual -
lastMs
private long lastMs -
lastUiMs
private long lastUiMs -
msPerTick
private final float msPerTick -
targetMsptProvider
private final it.unimi.dsi.fastutil.floats.FloatUnaryOperator targetMsptProvider -
paused
private boolean paused -
frozen
private boolean frozen
-
-
Constructor Details
-
Timer
public Timer(float p_343882_, long p_344080_, it.unimi.dsi.fastutil.floats.FloatUnaryOperator p_343677_)
-
-
Method Details
-
advanceTime
public int advanceTime(long p_343106_, boolean p_342855_) -
advanceGameTime
private int advanceGameTime(long p_342679_) -
advanceRealTime
private void advanceRealTime(long p_342368_) -
updatePauseState
public void updatePauseState(boolean p_342098_) -
pause
private void pause() -
unPause
private void unPause() -
updateFrozenState
public void updateFrozenState(boolean p_344005_) -
getGameTimeDeltaTicks
public float getGameTimeDeltaTicks()- Specified by:
getGameTimeDeltaTicks
in interfaceDeltaTracker
-
getGameTimeDeltaPartialTick
public float getGameTimeDeltaPartialTick(boolean p_344876_) - Specified by:
getGameTimeDeltaPartialTick
in interfaceDeltaTracker
-
getRealtimeDeltaTicks
public float getRealtimeDeltaTicks()- Specified by:
getRealtimeDeltaTicks
in interfaceDeltaTracker
-