Class Library
java.lang.Object
org.moddingx.launcherlib.launcher.Library
A library for the game.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionartifact()Gets the artifact, this library describes.voidDownloads the library tobasePath.resolve(path()).key()Gets the unique library key.Opens anInputStreamto download the library.path()Gets the path inside a library structure to download that library to.booleanGets whether this library should be downloaded on the given operating system.
-
Constructor Details
-
Library
-
-
Method Details
-
key
Gets the unique library key. -
path
Gets the path inside a library structure to download that library to. -
artifact
Gets the artifact, this library describes. -
shouldDownloadOn
Gets whether this library should be downloaded on the given operating system.osshould be one ofwindows,osxandlinux. -
openStream
Opens anInputStreamto download the library.- Throws:
IOException
-
download
Downloads the library tobasePath.resolve(path()).- Throws:
IOException
-