Class ServerTickRateManager

java.lang.Object
net.minecraft.world.TickRateManager
net.minecraft.server.ServerTickRateManager

public class ServerTickRateManager extends TickRateManager
  • Field Details

    • remainingSprintTicks

      private long remainingSprintTicks
    • sprintTickStartTime

      private long sprintTickStartTime
    • sprintTimeSpend

      private long sprintTimeSpend
    • scheduledCurrentSprintTicks

      private long scheduledCurrentSprintTicks
    • previousIsFrozen

      private boolean previousIsFrozen
    • server

      private final MinecraftServer server
  • Constructor Details

    • ServerTickRateManager

      public ServerTickRateManager(MinecraftServer p_311395_)
  • Method Details

    • isSprinting

      public boolean isSprinting()
    • setFrozen

      public void setFrozen(boolean p_313235_)
      Overrides:
      setFrozen in class TickRateManager
    • updateStateToClients

      private void updateStateToClients()
    • updateStepTicks

      private void updateStepTicks()
    • stepGameIfPaused

      public boolean stepGameIfPaused(int p_312205_)
    • stopStepping

      public boolean stopStepping()
    • stopSprinting

      public boolean stopSprinting()
    • requestGameToSprint

      public boolean requestGameToSprint(int p_311983_)
    • finishTickSprint

      private void finishTickSprint()
    • checkShouldSprintThisTick

      public boolean checkShouldSprintThisTick()
    • endTickWork

      public void endTickWork()
    • setTickRate

      public void setTickRate(float p_312065_)
      Overrides:
      setTickRate in class TickRateManager
    • updateJoiningPlayer

      public void updateJoiningPlayer(ServerPlayer p_310808_)