Class ServerTickEvents

java.lang.Object
net.fabricmc.fabric.api.event.lifecycle.v1.ServerTickEvents

public final class ServerTickEvents extends Object
Contains events that are triggered on the server every tick.

A dedicated server may "pause" if no player is present for a certain length of time (by default, 1 minute). See pause-when-empty-seconds property in server.properties. When the server is "paused", none of the events here will be invoked.

  • Field Details

    • START_SERVER_TICK

      public static final Event<ServerTickEvents.StartTick> START_SERVER_TICK
      Called at the start of the server tick.

      When the dedicated server is "paused", this event is not invoked.

    • END_SERVER_TICK

      public static final Event<ServerTickEvents.EndTick> END_SERVER_TICK
      Called at the end of the server tick.

      When the dedicated server is "paused", this event is not invoked.

    • START_WORLD_TICK

      public static final Event<ServerTickEvents.StartWorldTick> START_WORLD_TICK
      Called at the start of a ServerWorld's tick.

      When the dedicated server is "paused", this event is not invoked.

    • END_WORLD_TICK

      public static final Event<ServerTickEvents.EndWorldTick> END_WORLD_TICK
      Called at the end of a ServerWorld's tick.

      End of world tick may be used to start async computations for the next tick.

      When the dedicated server is "paused", this event is not invoked.