Wouldn't a much better solution be to define an abstract static method getTrackingID() in Entity, that each class then implements? Then that entire mess of if/else statements could be condensed to just differentiating between EntityPlayer/EntityLiving/everything else, and returning the...