onEmit

abstract fun onEmit(callback: context(Simulator) (T) -> Unit)

Callback the source node would execute when emitting an entity