Class ServerTickEndEvent

java.lang.Object
org.bukkit.event.Event
com.destroystokyo.paper.event.server.ServerTickEndEvent

@NullMarked public class ServerTickEndEvent extends Event
Called when the server has finished ticking the main loop
  • Constructor Details Link icon

    • ServerTickEndEvent Link icon

      @Internal public ServerTickEndEvent(int tickNumber, double tickDuration, long timeRemaining)
  • Method Details Link icon

    • getTickNumber Link icon

      public int getTickNumber()
      Returns:
      What tick this was since start (first tick = 1)
    • getTickDuration Link icon

      public double getTickDuration()
      Returns:
      Time in milliseconds of how long this tick took
    • getTimeRemaining Link icon

      public long getTimeRemaining()
      Amount of nanoseconds remaining before the next tick should start.

      If this value is negative, then that means the server has exceeded the tick time limit and TPS has been lost.

      Method will continuously return the updated time remaining value. (return value is not static)

      Returns:
      Amount of nanoseconds remaining before the next tick should start
    • getHandlers Link icon

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList Link icon

      public static HandlerList getHandlerList()