package org.mcupdater.instance;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Instance {
	private List<FileInfo> instanceFiles;
	private Map<String, Boolean> optionalMods;

	public Instance(){
		instanceFiles = new ArrayList<FileInfo>();
		optionalMods = new HashMap<String, Boolean>();
	}
	
	public List<FileInfo> getInstanceFiles() {
		return instanceFiles;
	}
	public void setInstanceFiles(List<FileInfo> instanceFiles) {
		this.instanceFiles = instanceFiles;
	}
	public Map<String, Boolean> getOptionalMods() {
		return this.optionalMods;
	}
	
	public Boolean getModStatus(String key) {
		return this.optionalMods.get(key);
	}
	
	public void setModStatus(String key, Boolean value) {
		this.optionalMods.put(key, value);
	}
}

@@ -163,36 +163,24 @@
 ate 
-List%3CFileInfo%3E instanceFiles
+String mcversion
 ;%0A%09p
@@ -190,78 +190,122 @@
 ate 
-Map%3C
 String
-, Boolean%3E optionalMods;%0A%0A%09public Instance()%7B%0A%09%09instanceFile
+ revision;%0A%09private List%3CFileInfo%3E instanceFiles = new ArrayList%3CFileInfo%3E();%0A%09private List%3CFileInfo%3E jarMod
 s = 
@@ -332,17 +332,45 @@
 fo%3E();%0A%09
-%09
+private Map%3CString, Boolean%3E 
 optional
@@ -408,19 +408,16 @@
 ean%3E();%0A
-%09%7D%0A
 %09%0A%09publi
@@ -802,24 +802,24 @@
 an value) %7B%0A
-
 %09%09this.optio
@@ -846,10 +846,410 @@
 ue);%0A%09%7D%0A
+%09public String getMCVersion() %7B%0A%09%09return mcversion;%0A%09%7D%0A%09public void setMCVersion(String mcversion) %7B%0A%09%09this.mcversion = mcversion;%0A%09%7D%0A%09public String getRevision() %7B%0A%09%09return revision;%0A%09%7D%0A%09public void setRevision(String revision) %7B%0A%09%09this.revision = revision;%0A%09%7D%0A%09public List%3CFileInfo%3E getJarMods() %7B%0A%09%09return jarMods;%0A%09%7D%0A%09public void setJarMods(List%3CFileInfo%3E jarMods) %7B%0A%09%09this.jarMods = jarMods;%0A%09%7D%0A
 %7D%0A

Add additional instance fields