Package net.minecraft.server
Class ServerTickRateManager
java.lang.Object
net.minecraft.world.TickRateManager
net.minecraft.server.ServerTickRateManager
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private long
private long
private final MinecraftServer
private long
private long
Fields inherited from class net.minecraft.world.TickRateManager
frozenTicksToRun, isFrozen, MIN_TICKRATE, nanosecondsPerTick, runGameElements, tickrate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
private void
boolean
boolean
requestGameToSprint
(int p_308951_) void
setFrozen
(boolean p_309002_) void
setTickRate
(float p_309003_) boolean
stepGameIfPaused
(int p_308975_) boolean
boolean
void
updateJoiningPlayer
(ServerPlayer p_309205_) private void
private void
Methods inherited from class net.minecraft.world.TickRateManager
frozenTicksToRun, isEntityFrozen, isFrozen, isSteppingForward, millisecondsPerTick, nanosecondsPerTick, runsNormally, setFrozenTicksToRun, tick, tickrate
-
Field Details
-
remainingSprintTicks
private long remainingSprintTicks -
sprintTickStartTime
private long sprintTickStartTime -
sprintTimeSpend
private long sprintTimeSpend -
scheduledCurrentSprintTicks
private long scheduledCurrentSprintTicks -
previousIsFrozen
private boolean previousIsFrozen -
server
-
-
Constructor Details
-
ServerTickRateManager
-
-
Method Details
-
isSprinting
public boolean isSprinting() -
setFrozen
public void setFrozen(boolean p_309002_) - Overrides:
setFrozen
in classTickRateManager
-
updateStateToClients
private void updateStateToClients() -
updateStepTicks
private void updateStepTicks() -
stepGameIfPaused
public boolean stepGameIfPaused(int p_308975_) -
stopStepping
public boolean stopStepping() -
stopSprinting
public boolean stopSprinting() -
requestGameToSprint
public boolean requestGameToSprint(int p_308951_) -
finishTickSprint
private void finishTickSprint() -
checkShouldSprintThisTick
public boolean checkShouldSprintThisTick() -
endTickWork
public void endTickWork() -
setTickRate
public void setTickRate(float p_309003_) - Overrides:
setTickRate
in classTickRateManager
-
updateJoiningPlayer
-