public void paintAllBlocks(Graphics g) {
        for (int x = 0; x < blockmap.width; x++) {
            for (int y = 0; y < blockmap.height; y++) {
                for (int z = 0; z < blockmap.depth; z++) {
                    if (blockmap.map[x][y][z] != null) {
                            g.drawImage(blockTextures[blockmap.map[x][y][z].getID()], blockmap.map[x][y][z].x, blockmap.map[x][y][z].y, null);
                    }
                }
            }
        }
    }