getParent

@MainThread
fun getParent(): Entity?

Gets the parent entity of the current entity.

Return

The parent entity if it exists, or null if there is no parent.