Enum Class NoCache
- All Implemented Interfaces:
Serializable, Comparable<NoCache>, Constable, LauncherCache
An implementation of
LauncherCache that does not perform any caching.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptiondownloadAsset(String hash, URL url) Cache an asset or download it if no cached version is available.downloadLibrary(String key, URL url) Cache a library file or download it if no cached version is available.downloadMappings(String version, String key, URL url) Cache a mapping file or download it if no cached version is available.downloadVersion(String version, String key, URL url) Cache a version file or download it if no cached version is available.static NoCacheReturns the enum constant of this class with the specified name.static NoCache[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
downloadVersion
Description copied from interface:LauncherCacheCache a version file or download it if no cached version is available.- Specified by:
downloadVersionin interfaceLauncherCache- Throws:
IOException
-
downloadMappings
Description copied from interface:LauncherCacheCache a mapping file or download it if no cached version is available.- Specified by:
downloadMappingsin interfaceLauncherCache- Throws:
IOException
-
downloadLibrary
Description copied from interface:LauncherCacheCache a library file or download it if no cached version is available.- Specified by:
downloadLibraryin interfaceLauncherCache- Throws:
IOException
-
downloadAsset
Description copied from interface:LauncherCacheCache an asset or download it if no cached version is available.- Specified by:
downloadAssetin interfaceLauncherCache- Throws:
IOException
-