Package net.minecraftforge.fml.loading
Enum FMLPaths
- java.lang.Object
-
- java.lang.Enum<FMLPaths>
-
- net.minecraftforge.fml.loading.FMLPaths
-
-
Field Summary
Fields Modifier and Type Field Description private java.nio.file.Path
absolutePath
private boolean
isDirectory
private static org.apache.logging.log4j.Logger
LOGGER
private java.nio.file.Path
relativePath
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.nio.file.Path
computePath(java.lang.String... path)
java.nio.file.Path
get()
static java.nio.file.Path
getOrCreateGameRelativePath(java.nio.file.Path path, java.lang.String name)
static void
loadAbsolutePaths(java.nio.file.Path rootPath)
java.nio.file.Path
relative()
static void
setup(cpw.mods.modlauncher.api.IEnvironment env)
static FMLPaths
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FMLPaths[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Constructor Detail
-
FMLPaths
private FMLPaths()
-
FMLPaths
private FMLPaths(java.lang.String... path)
-
FMLPaths
private FMLPaths(boolean isDir, FMLPaths parent, java.lang.String... path)
-
-
Method Detail
-
values
public static FMLPaths[] 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 (FMLPaths c : FMLPaths.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FMLPaths 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
-
computePath
private java.nio.file.Path computePath(java.lang.String... path)
-
setup
public static void setup(cpw.mods.modlauncher.api.IEnvironment env)
-
loadAbsolutePaths
public static void loadAbsolutePaths(java.nio.file.Path rootPath)
-
getOrCreateGameRelativePath
public static java.nio.file.Path getOrCreateGameRelativePath(java.nio.file.Path path, java.lang.String name)
-
relative
public java.nio.file.Path relative()
-
get
public java.nio.file.Path get()
-
-