Skip to content

Commit 34c172d

Browse files
committed
Unify dependency resolution with a single Directed Acyclic Graph algorithm
1 parent a4a8653 commit 34c172d

25 files changed

Lines changed: 399 additions & 1518 deletions

File tree

core/src/main/java/pl/skidam/automodpack_core/loader/LoaderManagerService.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
package pl.skidam.automodpack_core.loader;
22

3-
import pl.skidam.automodpack_core.utils.FileInspection;
4-
5-
import java.util.Collection;
6-
73
public interface LoaderManagerService {
84
enum ModPlatform { FABRIC, QUILT, FORGE, NEOFORGE }
95
enum EnvironmentType { CLIENT, SERVER, UNIVERSAL }
106

117
ModPlatform getPlatformType();
12-
Collection<FileInspection.Mod> getModList();
13-
boolean isModLoaded(String modId);
148
String getLoaderVersion();
159
EnvironmentType getEnvironmentType();
1610
boolean isDevelopmentEnvironment();
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
package pl.skidam.automodpack_core.loader;
22

3-
import pl.skidam.automodpack_core.utils.FileInspection;
4-
53
import java.nio.file.Path;
64
import java.util.List;
75

86
public interface ModpackLoaderService {
97
void loadModpack(List<Path> modpackMods);
10-
List<FileInspection.Mod> getModpackNestedConflicts(Path modpackDir); // Returns list of mods from the modpack Dir that are conflicting with the mods from standard mods dir
118
}

core/src/main/java/pl/skidam/automodpack_core/loader/NullLoaderManager.java

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,12 @@
11
package pl.skidam.automodpack_core.loader;
22

3-
import pl.skidam.automodpack_core.utils.FileInspection;
4-
5-
import java.util.Collection;
6-
3+
// TODO remove this, wtf is this even for
74
public class NullLoaderManager implements LoaderManagerService {
85
@Override
96
public ModPlatform getPlatformType() {
107
return null;
118
}
129

13-
@Override
14-
public boolean isModLoaded(String modId) {
15-
return false;
16-
}
17-
18-
@Override
19-
public Collection<FileInspection.Mod> getModList() {
20-
return null;
21-
}
22-
2310
@Override
2411
public String getLoaderVersion() {
2512
return null;
Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
package pl.skidam.automodpack_core.loader;
22

3-
import pl.skidam.automodpack_core.utils.FileInspection;
4-
53
import java.nio.file.Path;
64
import java.util.List;
75

@@ -11,9 +9,4 @@ public class NullModpackLoader implements ModpackLoaderService {
119
public void loadModpack(List<Path> modpackMods) {
1210
throw new AssertionError("Loader class not found");
1311
}
14-
15-
@Override
16-
public List<FileInspection.Mod> getModpackNestedConflicts(Path modpackDir) {
17-
throw new AssertionError("Loader class not found");
18-
}
1912
}

0 commit comments

Comments
 (0)