/** * Returns a new tileset that is a clone of this tileset with the image path updated to reference * the given path. Useful for configuring a single tileset and then generating additional tilesets * with new images with the same configuration. */ public TileSet clone(String imagePath) throws CloneNotSupportedException { TileSet dup = (TileSet) clone(); dup.setImagePath(imagePath); return dup; }