Skip to content
On this page

Fabric

ServerEvent

top.katton.api.eventfabric/src/main/kotlin/top/katton/api/event/ServerEvent.kt
Server lifecycle events for Fabric platform.

ServerEvent

FabricObject
kotlin
object ServerEvent

Server lifecycle events for Fabric platform.

This object provides events related to server lifecycle including server start/stop, datapack reload, save hooks, and tick events.

ServerEvent.onServerStarting

FabricProperty
kotlin
val onServerStarting

Event triggered when the server is starting (before worlds are loaded).

ServerEvent.onServerStarted

FabricProperty
kotlin
val onServerStarted

Event triggered when the server has started (after worlds are loaded).

ServerEvent.onServerStopping

FabricProperty
kotlin
val onServerStopping

Event triggered when the server is stopping.

ServerEvent.onServerStopped

FabricProperty
kotlin
val onServerStopped

Event triggered when the server has stopped.

ServerEvent.onSyncDatapackContents

FabricProperty
kotlin
val onSyncDatapackContents

Event triggered when datapack contents are being synced to players.

ServerEvent.onStartDatapackReload

FabricProperty
kotlin
val onStartDatapackReload

Event triggered when a datapack reload is starting.

ServerEvent.onEndDatapackReload

FabricProperty
kotlin
val onEndDatapackReload

Event triggered when a datapack reload has completed.

ServerEvent.onBeforeSave

FabricProperty
kotlin
val onBeforeSave

Event triggered before the server saves data.

ServerEvent.onAfterSave

FabricProperty
kotlin
val onAfterSave

Event triggered after the server has saved data.

ServerEvent.onStartServerTick

FabricProperty
kotlin
val onStartServerTick

Event triggered at the start of each server tick.

ServerEvent.onEndServerTick

FabricProperty
kotlin
val onEndServerTick

Event triggered at the end of each server tick.

ServerEvent.onStartWorldTick

FabricProperty
kotlin
val onStartWorldTick

Event triggered at the start of each world/level tick.

ServerEvent.onEndWorldTick

FabricProperty
kotlin
val onEndWorldTick

Event triggered at the end of each world/level tick.