Class ServerTickEvents
java.lang.Object
net.fabricmc.fabric.api.event.lifecycle.v1.ServerTickEvents
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.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
static interface
static interface
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Event
<ServerTickEvents.EndTick> Called at the end of the server tick.static final Event
<ServerTickEvents.EndWorldTick> Called at the end of a ServerWorld's tick.static final Event
<ServerTickEvents.StartTick> Called at the start of the server tick.static final Event
<ServerTickEvents.StartWorldTick> Called at the start of a ServerWorld's tick. -
Method Summary
-
Field Details
-
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
Called at the end of the server tick.When the dedicated server is "paused", this event is not invoked.
-
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
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.
-