onSpawn

abstract fun onSpawn(handler: SpawnDsl.() -> Unit)

Registers a handler called when this entity becomes visible to a player.