Enum FMLPaths

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<FMLPaths>

    public enum FMLPaths
    extends java.lang.Enum<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  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private FMLPaths()  
      private FMLPaths​(boolean isDir, FMLPaths parent, java.lang.String... path)  
      private FMLPaths​(java.lang.String... path)  
    • 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.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • 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 Detail

      • LOGGER

        private static final org.apache.logging.log4j.Logger LOGGER
      • relativePath

        private final java.nio.file.Path relativePath
      • isDirectory

        private final boolean isDirectory
      • absolutePath

        private java.nio.file.Path absolutePath
    • 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 name
        java.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()