Rectangle bounded = region.getBounds(); for (int i = bounded.y; i < bounded.y + bounded.height; i++) { for (int j = bounded.x; j < bounded.x + bounded.width; j++) { if (region.contains(j, i)) { setTileAt(j, i, null); } } }
fillRegion(region, null);
    private void clearRegion(Area region) {        Rectangle bounded = region.getBounds();        for (int i = bounded.y; i < bounded.y + bounded.height; i++) {            for (int j = bounded.x; j < bounded.x + bounded.width; j++) {                if (region.contains(j, i)) {                    setTileAt(j, i, null);                }            }        }    }