mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-04-09 17:26:07 +00:00
addon dependency sorting
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
dependencies {
|
||||
"shadedApi"(project(":common:api:util"))
|
||||
"shadedApi"("ca.solo-studios:strata:1.0.0")
|
||||
}
|
||||
|
||||
@@ -1,8 +1,20 @@
|
||||
package com.dfsek.terra.api.addon;
|
||||
|
||||
import ca.solostudios.strata.version.Version;
|
||||
import ca.solostudios.strata.version.VersionRange;
|
||||
|
||||
import com.dfsek.terra.api.util.StringIdentifiable;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
public interface BaseAddon extends StringIdentifiable {
|
||||
default void initialize() { }
|
||||
|
||||
default Map<String, VersionRange> getDependencies() {
|
||||
return Collections.emptyMap();
|
||||
}
|
||||
|
||||
Version getVersion();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user