public class LibraryManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static boolean |
DISABLE_EXTERNAL_MANIFEST |
static boolean |
ENABLE_AUTO_MOD_MOVEMENT |
private static java.util.Comparator<java.io.File> |
FILE_NAME_SORTER_INSENSITVE |
private static Repository |
libraries_dir |
private static java.lang.String |
LIBRARY_DIRECTORY_OVERRIDE |
private static java.util.jar.Attributes.Name |
MAVEN_ARTIFACT |
private static java.util.jar.Attributes.Name |
MD5 |
private static java.io.FilenameFilter |
MOD_FILENAME_FILTER |
private static java.util.jar.Attributes.Name |
MODCONTAINSDEPS |
static java.util.jar.Attributes.Name |
MODSIDE |
private static java.util.Set<java.io.File> |
processed |
private static java.util.List<java.lang.String> |
skipContainedDeps |
private static java.util.jar.Attributes.Name |
TIMESTAMP |
Constructor and Description |
---|
LibraryManager() |
Modifier and Type | Method and Description |
---|---|
private static void |
cleanDirectory(java.io.File dir,
ModList modlist,
java.io.File... modDirs) |
private static org.apache.commons.lang3.tuple.Pair<Artifact,byte[]> |
extractPacked(java.io.File file,
ModList modlist,
java.io.File... modDirs) |
private static org.apache.commons.lang3.tuple.Pair<Artifact,byte[]> |
extractPacked(java.util.jar.JarFile jar,
ModList modlist,
java.io.File... modDirs) |
private static java.io.File |
findLibraryFolder(java.io.File minecraftHome) |
static java.util.List<Artifact> |
flattenLists(java.io.File mcDir) |
static java.util.List<java.io.File> |
gatherLegacyCanidates(java.io.File mcDir) |
static Repository |
getDefaultRepo() |
private static byte[] |
readAll(java.io.InputStream in) |
private static Artifact |
readArtifact(Repository repo,
java.util.jar.Attributes meta) |
static void |
setup(java.io.File minecraftHome) |
public static final boolean DISABLE_EXTERNAL_MANIFEST
public static final boolean ENABLE_AUTO_MOD_MOVEMENT
private static final java.lang.String LIBRARY_DIRECTORY_OVERRIDE
private static final java.util.List<java.lang.String> skipContainedDeps
private static final java.io.FilenameFilter MOD_FILENAME_FILTER
private static final java.util.Comparator<java.io.File> FILE_NAME_SORTER_INSENSITVE
public static final java.util.jar.Attributes.Name MODSIDE
private static final java.util.jar.Attributes.Name MODCONTAINSDEPS
private static final java.util.jar.Attributes.Name MAVEN_ARTIFACT
private static final java.util.jar.Attributes.Name TIMESTAMP
private static final java.util.jar.Attributes.Name MD5
private static Repository libraries_dir
private static java.util.Set<java.io.File> processed
public static void setup(java.io.File minecraftHome)
private static java.io.File findLibraryFolder(java.io.File minecraftHome)
private static void cleanDirectory(java.io.File dir, ModList modlist, java.io.File... modDirs)
private static org.apache.commons.lang3.tuple.Pair<Artifact,byte[]> extractPacked(java.io.File file, ModList modlist, java.io.File... modDirs)
private static org.apache.commons.lang3.tuple.Pair<Artifact,byte[]> extractPacked(java.util.jar.JarFile jar, ModList modlist, java.io.File... modDirs) throws java.io.IOException
java.io.IOException
private static Artifact readArtifact(Repository repo, java.util.jar.Attributes meta)
private static byte[] readAll(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public static java.util.List<Artifact> flattenLists(java.io.File mcDir)
public static java.util.List<java.io.File> gatherLegacyCanidates(java.io.File mcDir)
public static Repository getDefaultRepo()