Class LibraryManager
java.lang.Object
net.minecraftforge.fml.relauncher.libraries.LibraryManager
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
static final boolean
private static final Comparator<File>
private static Repository
private static final String
private static final org.apache.logging.log4j.Logger
private static final Attributes.Name
private static final Attributes.Name
private static final FilenameFilter
private static final Attributes.Name
static final Attributes.Name
private static final Attributes.Name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
cleanDirectory
(File dir, ModList modlist, File... modDirs) private static org.apache.commons.lang3.tuple.Pair<Artifact,
byte[]> extractPacked
(File file, ModList modlist, File... modDirs) private static org.apache.commons.lang3.tuple.Pair<Artifact,
byte[]> extractPacked
(JarFile jar, ModList modlist, File... modDirs) private static File
findLibraryFolder
(File minecraftHome) flattenLists
(File mcDir) gatherLegacyCanidates
(File mcDir) static Repository
private static byte[]
readAll
(InputStream in) private static Artifact
readArtifact
(Repository repo, Attributes meta) static void
-
Field Details
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
DISABLE_EXTERNAL_MANIFEST
public static final boolean DISABLE_EXTERNAL_MANIFEST -
ENABLE_AUTO_MOD_MOVEMENT
public static final boolean ENABLE_AUTO_MOD_MOVEMENT -
LIBRARY_DIRECTORY_OVERRIDE
-
skipContainedDeps
-
MOD_FILENAME_FILTER
-
FILE_NAME_SORTER_INSENSITVE
-
MODSIDE
-
MODCONTAINSDEPS
-
MAVEN_ARTIFACT
-
TIMESTAMP
-
MD5
-
libraries_dir
-
processed
-
-
Constructor Details
-
LibraryManager
public LibraryManager()
-
-
Method Details
-
setup
-
findLibraryFolder
-
cleanDirectory
-
extractPacked
-
extractPacked
private static org.apache.commons.lang3.tuple.Pair<Artifact,byte[]> extractPacked(JarFile jar, ModList modlist, File... modDirs) throws IOException - Throws:
IOException
-
readArtifact
-
readAll
- Throws:
IOException
-
flattenLists
-
gatherLegacyCanidates
-
getDefaultRepo
-