package org.egordorichev.lasttry.mod;

public class ModLoader {
	// TODO
}

@@ -62,14 +62,581 @@
  %7B%0A%09
-// TODO
+private ArrayList%3CMod%3E mods;%0A%09%0A%09public ModLoader() %7B%0A%09%09mods = new ArrayList%3C%3E();%0A%09%7D%0A%09%0A%09public Mod loadMod(String name) %7B%0A%09%09throw new NotImplementedException();%0A%09%7D%0A%09%0A%09public void unloadMod(String name) %7B%0A%09%09this.unloadMod(this.getMod(name));%0A%09%7D%0A%09%0A%09public void unloadMod(Mod mod) throws ModException %7B%0A%09%09if(mod == null) %7B%0A%09%09%09throw new ModException(%22Mod is null%22);%0A%09%09%7D%0A%09%09%0A%09%09mod.onUnload();%0A%09%09throw new NotImplementedException();%0A%09%7D%0A%09%0A%09public Mod getMod(String name) %7B%0A%09%09for(Mod mod : this.mods) %7B%0A%09%09%09if(mod.getName().equals(name)) %7B%0A%09%09%09%09return mod;%0A%09%09%09%7D%0A%09%09%7D%0A%09%09%0A%09%09return null;%0A%09%7D
 %0A%7D%0A

Update ModLoader.java