Enum InvalidModIdentifier
- java.lang.Object
-
- java.lang.Enum<InvalidModIdentifier>
-
- net.minecraftforge.fml.loading.moddiscovery.InvalidModIdentifier
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<InvalidModIdentifier>
public enum InvalidModIdentifier extends java.lang.Enum<InvalidModIdentifier>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BUKKIT
FABRIC
INVALIDZIP
LITELOADER
OLDFORGE
OPTIFINE
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.BiPredicate<java.nio.file.Path,java.util.Optional<java.util.zip.ZipFile>>
ident
-
Constructor Summary
Constructors Modifier Constructor Description private
InvalidModIdentifier(java.util.function.BiPredicate<java.nio.file.Path,java.util.Optional<java.util.zip.ZipFile>> identifier)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
OLDFORGE
public static final InvalidModIdentifier OLDFORGE
-
FABRIC
public static final InvalidModIdentifier FABRIC
-
LITELOADER
public static final InvalidModIdentifier LITELOADER
-
OPTIFINE
public static final InvalidModIdentifier OPTIFINE
-
BUKKIT
public static final InvalidModIdentifier BUKKIT
-
INVALIDZIP
public static final InvalidModIdentifier INVALIDZIP
-
-
Method Detail
-
values
public static InvalidModIdentifier[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (InvalidModIdentifier c : InvalidModIdentifier.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InvalidModIdentifier valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getReason
private java.lang.String getReason()
-
identifyJarProblem
public static java.util.Optional<java.lang.String> identifyJarProblem(java.nio.file.Path path)
-
filePresent
private static java.util.function.BiPredicate<java.nio.file.Path,java.util.Optional<java.util.zip.ZipFile>> filePresent(java.lang.String filename)
-
optionalFromException
private static <T> java.util.Optional<T> optionalFromException(cpw.mods.modlauncher.api.LamdbaExceptionUtils.Supplier_WithExceptions<T,? extends java.lang.Exception> supp)
-
-