Search in sources :

Example 1 with BaseModule

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;
        }
    };
}
Also used : Version(org.terasology.naming.Version) BaseModule(org.terasology.module.BaseModule) ModuleMetadata(org.terasology.module.ModuleMetadata) URL(java.net.URL) Name(org.terasology.naming.Name)

Aggregations

URL (java.net.URL)1 BaseModule (org.terasology.module.BaseModule)1 ModuleMetadata (org.terasology.module.ModuleMetadata)1 Name (org.terasology.naming.Name)1 Version (org.terasology.naming.Version)1