use of org.terasology.module.BaseModule in project Terasology by MovingBlocks.
the class ModuleDownloadListGeneratorTest method buildSimpleModule.
private Module buildSimpleModule(String id, String version) {
ModuleMetadata metadata = new ModuleMetadata();
metadata.setId(new Name(id));
if (version != null) {
metadata.setVersion(new Version(version));
}
return new BaseModule(Collections.emptyList(), metadata) {
@Override
public ImmutableList<URL> getClasspaths() {
return null;
}
@Override
public boolean isOnClasspath() {
return false;
}
@Override
public boolean isCodeModule() {
return false;
}
};
}
Aggregations