getTrackingDistance

public double getTrackingDistance(Entity entity, Player viewer)

The horizontal distance within which the server's entity tracker sends entity to viewer: its tracking range, raised by its passengers' ranges and capped by the viewer's view distance, exactly as the tracker computes it. The tracker also needs the entity's chunk loaded for the viewer and the viewer allowed to see it. -1 when this version cannot tell or the entity is not tracked.