Class ModList

  • Direct Known Subclasses:
    MemoryModList

    public class ModList
    extends java.lang.Object
    • Field Detail

      • LOGGER

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

        private static final com.google.gson.Gson GSON
      • cache

        static final java.util.Map<java.lang.String,​ModList> cache
      • path

        private final java.io.File path
      • parent

        private final ModList parent
      • artifacts

        private final java.util.List<Artifact> artifacts
      • artifacts_imm

        private final java.util.List<Artifact> artifacts_imm
      • art_map

        private final java.util.Map<java.lang.String,​Artifact> art_map
      • changed

        private boolean changed
    • Constructor Detail

      • ModList

        private ModList​(java.io.File path,
                        java.io.File mcdir)
    • Method Detail

      • create

        public static ModList create​(java.io.File json,
                                     java.io.File mcdir)
      • getKnownLists

        public static java.util.List<ModList> getKnownLists​(java.io.File mcdir)
      • getBasicLists

        public static java.util.List<ModList> getBasicLists​(java.io.File mcdir)
      • getRepository

        public Repository getRepository()
      • add

        public void add​(Artifact artifact)
      • getArtifacts

        public java.util.List<Artifact> getArtifacts()
      • changed

        public boolean changed()
      • save

        public void save()
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • getFile

        private static java.io.File getFile​(java.io.File root,
                                            java.lang.String path)
      • flatten

        public java.util.List<Artifact> flatten()
      • getName

        public java.lang.Object getName()