Interface IServerState


public interface IServerState
  • Method Details

    • getTPS

      default float getTPS()
      Grabs the current average ticks per second
      Returns:
      the average ticks per second
    • getTPS

      float getTPS(boolean clamped)
      Grabs the current average ticks per second
      Returns:
      the average ticks per second
    • getLastUpdate

      long getLastUpdate()
      Returns:
      The last time the server sent a non-chat packet
    • getServerIP

      String getServerIP()
      Returns:
      A string representing the server IP
    • isPlayerSprinting

      boolean isPlayerSprinting()
      Returns:
      the last sprint state the player sent
    • isPlayerSneaking

      boolean isPlayerSneaking()
      Returns:
      the last sneak state the player sent
    • getPlayerX

      double getPlayerX()
      Returns:
      the last x position the player sent
    • getPlayerY

      double getPlayerY()
      Returns:
      the last y position the player sent
    • getPlayerZ

      double getPlayerZ()
      Returns:
      the last z position the player sent
    • getPlayerYaw

      float getPlayerYaw()
      Returns:
      the last yaw rotation the player sent
    • getPlayerPitch

      float getPlayerPitch()
      Returns:
      the last pitch rotation the player sent