05-30-2014, 01:17 AM
Depends on how many endermen there are. If there are few endermen then this method is faster as its O(E*P) but with a lower constant factor. However if there are more endermen then players than doing a ray sphere intersection from a players look vector will be O(P).