public void removeNonPlayerEntities() {
        int XC = (int)minPoint.x >> 4;
        int maxXC = (int)maxPoint.x >> 4;
        int ZC = (int)minPoint.z >> 4;
        int maxZC = (int)maxPoint.z >> 4;
        int ZCS = ZC;
        World w = minPoint.getWorldObj();
        for(; XC <= maxXC; ++XC) {
            for(; ZC <= maxZC; ++ZC) {
                Chunk chunk = w.getChunkAt(XC, ZC);
                Entity el[] = chunk.getEntities();
                for(Entity e: el) {
                    Location l = e.getLocation();
                    if(!(e instanceof Player) && isInArea(l)) {
                        e.remove();
                    }
                }
            }
            ZC = ZCS;
        }
    }