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
FieldsModifier and TypeFieldDescriptionprivate floatprivate floatprivate booleanprivate longprivate longprivate final floatprivate booleanprivate floatprivate floatprivate final it.unimi.dsi.fastutil.floats.FloatUnaryOperatorFields inherited from interface net.minecraft.client.DeltaTracker
ONE, ZERO -
Constructor Summary
ConstructorsConstructorDescriptionTimer(float pTicksPerSecond, long pTime, it.unimi.dsi.fastutil.floats.FloatUnaryOperator pTargetMsptProvider) -
Method Summary
Modifier and TypeMethodDescriptionprivate intadvanceGameTime(long pTime) private voidadvanceRealTime(long pTime) intadvanceTime(long pTime, boolean pAdvanceGameTime) floatgetGameTimeDeltaPartialTick(boolean p_348526_) floatfloatprivate voidpause()private voidunPause()voidupdateFrozenState(boolean pFrozen) voidupdatePauseState(boolean pPaused)
-
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 pTicksPerSecond, long pTime, it.unimi.dsi.fastutil.floats.FloatUnaryOperator pTargetMsptProvider)
-
-
Method Details
-
advanceTime
public int advanceTime(long pTime, boolean pAdvanceGameTime) -
advanceGameTime
private int advanceGameTime(long pTime) -
advanceRealTime
private void advanceRealTime(long pTime) -
updatePauseState
public void updatePauseState(boolean pPaused) -
pause
private void pause() -
unPause
private void unPause() -
updateFrozenState
public void updateFrozenState(boolean pFrozen) -
getGameTimeDeltaTicks
public float getGameTimeDeltaTicks()- Specified by:
getGameTimeDeltaTicksin interfaceDeltaTracker
-
getGameTimeDeltaPartialTick
public float getGameTimeDeltaPartialTick(boolean p_348526_) - Specified by:
getGameTimeDeltaPartialTickin interfaceDeltaTracker
-
getRealtimeDeltaTicks
public float getRealtimeDeltaTicks()- Specified by:
getRealtimeDeltaTicksin interfaceDeltaTracker
-