Enum Class FMLPaths

java.lang.Object
java.lang.Enum<FMLPaths>
net.minecraftforge.fml.loading.FMLPaths
All Implemented Interfaces:
Serializable, Comparable<FMLPaths>, Constable

public enum FMLPaths extends Enum<FMLPaths>
  • Enum Constant Details

    • GAMEDIR

      public static final FMLPaths GAMEDIR
    • MODSDIR

      public static final FMLPaths MODSDIR
    • CONFIGDIR

      public static final FMLPaths CONFIGDIR
    • FMLCONFIG

      public static final FMLPaths FMLCONFIG
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • relativePath

      private final Path relativePath
    • isDirectory

      private final boolean isDirectory
    • absolutePath

      private Path absolutePath
  • Constructor Details

    • FMLPaths

      private FMLPaths()
    • FMLPaths

      private FMLPaths(String... path)
    • FMLPaths

      private FMLPaths(boolean isDir, FMLPaths parent, String... path)
  • Method Details

    • values

      public static FMLPaths[] 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

      public static FMLPaths valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • computePath

      private Path computePath(String... path)
    • setup

      public static void setup(cpw.mods.modlauncher.api.IEnvironment env)
    • loadAbsolutePaths

      public static void loadAbsolutePaths(Path rootPath)
    • getOrCreateGameRelativePath

      @Deprecated(forRemoval=true, since="1.19.4") public static Path getOrCreateGameRelativePath(Path path, String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getOrCreateGameRelativePath

      public static Path getOrCreateGameRelativePath(Path path)
    • relative

      public Path relative()
    • get

      public Path get()