work on addon bootstrapping

This commit is contained in:
dfsek
2021-11-15 18:23:23 -07:00
parent ec17781f4a
commit 9d2b354a33
9 changed files with 87 additions and 17 deletions

View File

@@ -0,0 +1,3 @@
dependencies {
"shadedApi"(project(":common:api:util"))
}

View File

@@ -0,0 +1,7 @@
package com.dfsek.terra.api.addon;
import com.dfsek.terra.api.util.StringIdentifiable;
public interface AddonEntryPoint extends StringIdentifiable {
}

View File

@@ -0,0 +1,16 @@
package com.dfsek.terra.api.addon.bootstrap;
import com.dfsek.terra.api.addon.AddonEntryPoint;
import java.nio.file.Path;
public interface BootstrapAddon extends AddonEntryPoint {
/**
* Load all the relevant addons in the specified path.
* @param addonsFolder Path containing addons.
* @param parent
* @return Loaded addons
*/
Iterable<AddonEntryPoint> loadAddons(Path addonsFolder, ClassLoader parent);
}

View File

@@ -1,10 +0,0 @@
dependencies {
"shadedApi"(project(":common:api:core"))
"shadedApi"("com.dfsek:Paralithic:0.5.0")
"shadedApi"("com.dfsek.tectonic:common:2.1.2")
"shadedApi"("net.jafama:jafama:2.3.2")
}