net.minecraftforge.fml.common.versioning.ArtifactVersion Java Examples

The following examples show how to use net.minecraftforge.fml.common.versioning.ArtifactVersion. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CodeChickenCoreModContainer.java    From CodeChickenCore with MIT License 5 votes vote down vote up
@Override
public List<ArtifactVersion> getDependants() {
    LinkedList<ArtifactVersion> deps = new LinkedList<ArtifactVersion>();
    if(!getVersion().contains("$")) {
        deps.add(VersionParser.parseVersionReference("NotEnoughItems@[1.0.5,)"));
        deps.add(VersionParser.parseVersionReference("EnderStorage@[1.4.6,)"));
        deps.add(VersionParser.parseVersionReference("ChickenChunks@[1.3.5,)"));
        deps.add(VersionParser.parseVersionReference("Translocator@[1.1.2,)"));
        deps.add(VersionParser.parseVersionReference("WR-CBE|Core@[1.4.2,)"));
    }
    return deps;
}
 
Example #2
Source File: NEIModContainer.java    From NotEnoughItems with MIT License 4 votes vote down vote up
@Override
public Set<ArtifactVersion> getRequirements() {
    Set<ArtifactVersion> deps = new HashSet<ArtifactVersion>();
    deps.add(VersionParser.parseVersionReference("CodeChickenCore@["+CodeChickenCorePlugin.version+",)"));
    return deps;
}
 
Example #3
Source File: NEIModContainer.java    From NotEnoughItems with MIT License 4 votes vote down vote up
@Override
public List<ArtifactVersion> getDependencies() {
    return new LinkedList<ArtifactVersion>(getRequirements());
}