Class ModList
- java.lang.Object
-
- net.minecraftforge.fml.relauncher.libraries.ModList
-
- Direct Known Subclasses:
MemoryModList
public class ModList extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
ModList.JsonModList
-
Field Summary
Fields Modifier and Type Field 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 static org.apache.logging.log4j.Logger
LOGGER
private ModList.JsonModList
mod_list
private ModList
parent
private java.io.File
path
private Repository
repo
-
Constructor Summary
Constructors Modifier Constructor Description private
ModList(java.io.File path, java.io.File mcdir)
protected
ModList(Repository repo)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Field Detail
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER
-
GSON
private static final com.google.gson.Gson GSON
-
cache
static final java.util.Map<java.lang.String,ModList> cache
-
path
private final java.io.File path
-
mod_list
private final ModList.JsonModList mod_list
-
repo
private final Repository repo
-
parent
private final ModList parent
-
artifacts
private final java.util.List<Artifact> artifacts
-
artifacts_imm
private final java.util.List<Artifact> artifacts_imm
-
art_map
private final java.util.Map<java.lang.String,Artifact> art_map
-
changed
private boolean changed
-
-
Constructor Detail
-
ModList
protected ModList(Repository repo)
-
ModList
private ModList(java.io.File path, java.io.File mcdir)
-
-
Method Detail
-
create
public static ModList create(java.io.File json, java.io.File mcdir)
-
getKnownLists
public static java.util.List<ModList> getKnownLists(java.io.File mcdir)
-
getBasicLists
public static java.util.List<ModList> getBasicLists(java.io.File mcdir)
-
getRepository
public Repository getRepository()
-
add
public void add(Artifact artifact)
-
getArtifacts
public java.util.List<Artifact> getArtifacts()
-
changed
public boolean changed()
-
save
public void save() throws java.io.IOException
- Throws:
java.io.IOException
-
getFile
private static java.io.File getFile(java.io.File root, java.lang.String path)
-
flatten
public java.util.List<Artifact> flatten()
-
getName
public java.lang.Object getName()
-
-