Package org.quiltmc.qkl.wrapper.qsl.lifecycle

Types

Link copied to clipboard
typealias GenericServerCallback = MinecraftServer.() -> Unit
Link copied to clipboard
typealias ServerWorldCallback = MinecraftServer.(ServerWorld) -> Unit

Functions

Link copied to clipboard
fun EventRegistration.onServerReady(callback: GenericServerCallback)
Link copied to clipboard
fun EventRegistration.onServerStarting(callback: GenericServerCallback)
Link copied to clipboard
fun EventRegistration.onServerStopped(callback: GenericServerCallback)
Link copied to clipboard
fun EventRegistration.onServerStopping(callback: GenericServerCallback)
Link copied to clipboard
fun EventRegistration.onServerTickEnd(callback: GenericServerCallback)

This tends to be a code hotspot, so any code should be sure to run quickly.

Link copied to clipboard
fun EventRegistration.onServerTickStart(callback: GenericServerCallback)

This tends to be a code hotspot, so any code should be sure to run quickly.

Link copied to clipboard
fun EventRegistration.onServerWorldLoad(callback: ServerWorldCallback)
Link copied to clipboard
fun EventRegistration.onServerWorldTickEnd(callback: ServerWorldCallback)

This tends to be a code hotspot, so any code should be sure to run quickly.

Link copied to clipboard
fun EventRegistration.onServerWorldTickStart(callback: ServerWorldCallback)

This tends to be a code hotspot, so any code should be sure to run quickly.

Link copied to clipboard
fun EventRegistration.onServerWorldUnload(callback: ServerWorldCallback)