try { tileInstanceProperties[y - bounds.y][x - bounds.x] = tip; } catch (ArrayIndexOutOfBoundsException e) {
if (bounds.contains(x, y)) { Object key = new Point(x, y); tileInstanceProperties.put(key, tip);
    public void setTileInstancePropertiesAt(int x, int y, Properties tip) {        try {            tileInstanceProperties[y - bounds.y][x - bounds.x] = tip;        } catch (ArrayIndexOutOfBoundsException e) {        }    }