mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-22 00:00:40 +00:00
work on addon bootstrapping
This commit is contained in:
3
common/api/addons/build.gradle.kts
Normal file
3
common/api/addons/build.gradle.kts
Normal file
@@ -0,0 +1,3 @@
|
||||
dependencies {
|
||||
"shadedApi"(project(":common:api:util"))
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package com.dfsek.terra.api.addon;
|
||||
|
||||
import com.dfsek.terra.api.util.StringIdentifiable;
|
||||
|
||||
|
||||
public interface AddonEntryPoint extends StringIdentifiable {
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user