Optimize getTileEntities

Doing PR for @mikeprimm and @bestle since they are not accustomed to the new system.

Avoid traversing tile entities for every loaded chunk.

Credits to @Bestle (shakytom) for the find.