public enum InvalidModIdentifier extends java.lang.Enum<InvalidModIdentifier>
Enum Constant and Description |
---|
FABRIC |
INVALIDZIP |
LITELOADER |
OLDFORGE |
OPTIFINE |
Modifier and Type | Field and Description |
---|---|
private java.util.function.BiPredicate<java.nio.file.Path,java.util.Optional<java.util.zip.ZipFile>> |
ident |
Modifier and Type | Method and Description |
---|---|
private static java.util.function.BiPredicate<java.nio.file.Path,java.util.Optional<java.util.zip.ZipFile>> |
filePresent(java.lang.String filename) |
private java.lang.String |
getReason() |
static java.util.Optional<java.lang.String> |
identifyJarProblem(java.nio.file.Path path) |
private static <T> java.util.Optional<T> |
optionalFromException(cpw.mods.modlauncher.api.LamdbaExceptionUtils.Supplier_WithExceptions<T,? extends java.lang.Exception> supp) |
static InvalidModIdentifier |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static InvalidModIdentifier[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InvalidModIdentifier OLDFORGE
public static final InvalidModIdentifier FABRIC
public static final InvalidModIdentifier LITELOADER
public static final InvalidModIdentifier OPTIFINE
public static final InvalidModIdentifier INVALIDZIP
private java.util.function.BiPredicate<java.nio.file.Path,java.util.Optional<java.util.zip.ZipFile>> ident
public static InvalidModIdentifier[] values()
for (InvalidModIdentifier c : InvalidModIdentifier.values()) System.out.println(c);
public static InvalidModIdentifier valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullprivate java.lang.String getReason()
public static java.util.Optional<java.lang.String> identifyJarProblem(java.nio.file.Path path)
private static java.util.function.BiPredicate<java.nio.file.Path,java.util.Optional<java.util.zip.ZipFile>> filePresent(java.lang.String filename)
private static <T> java.util.Optional<T> optionalFromException(cpw.mods.modlauncher.api.LamdbaExceptionUtils.Supplier_WithExceptions<T,? extends java.lang.Exception> supp)