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.PathabsolutePathprivate booleanisDirectoryprivate static org.apache.logging.log4j.LoggerLOGGERprivate java.nio.file.PathrelativePath
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.nio.file.PathcomputePath(java.lang.String... path)java.nio.file.Pathget()static java.nio.file.PathgetOrCreateGameRelativePath(java.nio.file.Path path, java.lang.String name)static voidloadAbsolutePaths(java.nio.file.Path rootPath)java.nio.file.Pathrelative()static voidsetup(cpw.mods.modlauncher.api.IEnvironment env)static FMLPathsvalueOf(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()
-
-