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_348629_, long p_348537_, it.unimi.dsi.fastutil.floats.FloatUnaryOperator p_348550_) -
Method Summary
Modifier and TypeMethodDescriptionprivate int
advanceGameTime
(long p_348532_) private void
advanceRealTime
(long p_348534_) int
advanceTime
(long p_348462_, boolean p_348492_) float
getGameTimeDeltaPartialTick
(boolean p_348526_) float
float
private void
pause()
private void
unPause()
void
updateFrozenState
(boolean p_348502_) void
updatePauseState
(boolean p_348523_)
-
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_348629_, long p_348537_, it.unimi.dsi.fastutil.floats.FloatUnaryOperator p_348550_)
-
-
Method Details
-
advanceTime
public int advanceTime(long p_348462_, boolean p_348492_) -
advanceGameTime
private int advanceGameTime(long p_348532_) -
advanceRealTime
private void advanceRealTime(long p_348534_) -
updatePauseState
public void updatePauseState(boolean p_348523_) -
pause
private void pause() -
unPause
private void unPause() -
updateFrozenState
public void updateFrozenState(boolean p_348502_) -
getGameTimeDeltaTicks
public float getGameTimeDeltaTicks()- Specified by:
getGameTimeDeltaTicks
in interfaceDeltaTracker
-
getGameTimeDeltaPartialTick
public float getGameTimeDeltaPartialTick(boolean p_348526_) - Specified by:
getGameTimeDeltaPartialTick
in interfaceDeltaTracker
-
getRealtimeDeltaTicks
public float getRealtimeDeltaTicks()- Specified by:
getRealtimeDeltaTicks
in interfaceDeltaTracker
-