[SelectedEntityInfo] entity = player.selectedEntity()
Returns the entity the player is currently looking at
Use player.facingEntity() to check if an entity is being looked at
Parameters
This function does not have any arguments/parameters.
Return Value