Package cpw.mods.fml.common.versioning

Examples of cpw.mods.fml.common.versioning.VersionRange


    if (versionRangeString != null) {
      ModContainer mod = Loader.instance().getIndexedModList().get(modname);
      ArtifactVersion modVersion = mod.getProcessedVersion();

      VersionRange versionRange = VersionParser.parseRange(versionRangeString);
      DefaultArtifactVersion requiredVersion = new DefaultArtifactVersion(modname, versionRange);

      if (!requiredVersion.containsVersion(modVersion))
        return false;
    }
View Full Code Here


              final String version = a.values.get(5).toString();
              boolean loaded = ModStatusHelper.isModLoaded(modId);
              if(loaded && !version.equals("")) {
                ModContainer mod = Loader.instance().getIndexedModList().get(modId);
                if(mod != null) {
                  VersionRange range = VersionParser.parseRange(version);
                  ArtifactVersion artifactVersion = new DefaultArtifactVersion("Version", mod.getVersion());
                  loaded = range.containsVersion(artifactVersion);
                } else {
                  loaded = false;
                }
              }
              if(loaded) {
View Full Code Here

TOP

Related Classes of cpw.mods.fml.common.versioning.VersionRange

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.