public class ModList
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
ModList.JsonModList |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,Artifact> |
art_map |
private java.util.List<Artifact> |
artifacts |
private java.util.List<Artifact> |
artifacts_imm |
(package private) static java.util.Map<java.lang.String,ModList> |
cache |
private boolean |
changed |
private static com.google.gson.Gson |
GSON |
private ModList.JsonModList |
mod_list |
private ModList |
parent |
private java.io.File |
path |
private Repository |
repo |
Modifier | Constructor and Description |
---|---|
private |
ModList(java.io.File path,
java.io.File mcdir) |
protected |
ModList(Repository repo) |
Modifier and Type | Method and Description |
---|---|
void |
add(Artifact artifact) |
boolean |
changed() |
static ModList |
create(java.io.File json,
java.io.File mcdir) |
java.util.List<Artifact> |
flatten() |
java.util.List<Artifact> |
getArtifacts() |
static java.util.List<ModList> |
getBasicLists(java.io.File mcdir) |
private static java.io.File |
getFile(java.io.File root,
java.lang.String path) |
static java.util.List<ModList> |
getKnownLists(java.io.File mcdir) |
java.lang.Object |
getName() |
Repository |
getRepository() |
void |
save() |
private static final com.google.gson.Gson GSON
static final java.util.Map<java.lang.String,ModList> cache
private final java.io.File path
private final ModList.JsonModList mod_list
private final Repository repo
private final ModList parent
private final java.util.List<Artifact> artifacts
private final java.util.List<Artifact> artifacts_imm
private final java.util.Map<java.lang.String,Artifact> art_map
private boolean changed
protected ModList(Repository repo)
private ModList(java.io.File path, java.io.File mcdir)
public static ModList create(java.io.File json, java.io.File mcdir)
public static java.util.List<ModList> getKnownLists(java.io.File mcdir)
public static java.util.List<ModList> getBasicLists(java.io.File mcdir)
public Repository getRepository()
public void add(Artifact artifact)
public java.util.List<Artifact> getArtifacts()
public boolean changed()
public void save() throws java.io.IOException
java.io.IOException
private static java.io.File getFile(java.io.File root, java.lang.String path)
public java.util.List<Artifact> flatten()
public java.lang.Object getName()