register

fun register(entity: Entity)

The entity provided will be tracked by this object, allowing you to access API on this entity. You must manually unregister this entity when it is no longer valid!

Registering the same entity twice will have no effect.