Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ val deps = listOf(
"com.google.code.gson:gson:2.13.2",
"org.bouncycastle:bcpkix-jdk18on:1.82",
"org.apache.httpcomponents.client5:httpclient5:5.5.1",
"org.tomlj:tomlj:1.1.1"
"org.tomlj:tomlj:1.1.1",
"com.h2database:h2-mvstore:2.4.240"
)

dependencies {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
package pl.skidam.automodpack_core.loader;

import pl.skidam.automodpack_core.utils.FileInspection;

import java.util.Collection;

public interface LoaderManagerService {
enum ModPlatform { FABRIC, QUILT, FORGE, NEOFORGE }
enum EnvironmentType { CLIENT, SERVER, UNIVERSAL }

ModPlatform getPlatformType();
Collection<FileInspection.Mod> getModList();
boolean isModLoaded(String modId);
String getLoaderVersion();
EnvironmentType getEnvironmentType();
boolean isDevelopmentEnvironment();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
package pl.skidam.automodpack_core.loader;

import pl.skidam.automodpack_core.utils.FileInspection;

import java.nio.file.Path;
import java.util.List;

public interface ModpackLoaderService {
void loadModpack(List<Path> modpackMods);
List<FileInspection.Mod> getModpackNestedConflicts(Path modpackDir); // Returns list of mods from the modpack Dir that are conflicting with the mods from standard mods dir
}
Original file line number Diff line number Diff line change
@@ -1,25 +1,12 @@
package pl.skidam.automodpack_core.loader;

import pl.skidam.automodpack_core.utils.FileInspection;

import java.util.Collection;

// TODO remove this, wtf is this even for
public class NullLoaderManager implements LoaderManagerService {
@Override
public ModPlatform getPlatformType() {
return null;
}

@Override
public boolean isModLoaded(String modId) {
return false;
}

@Override
public Collection<FileInspection.Mod> getModList() {
return null;
}

@Override
public String getLoaderVersion() {
return null;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package pl.skidam.automodpack_core.loader;

import pl.skidam.automodpack_core.utils.FileInspection;

import java.nio.file.Path;
import java.util.List;

Expand All @@ -11,9 +9,4 @@ public class NullModpackLoader implements ModpackLoaderService {
public void loadModpack(List<Path> modpackMods) {
throw new AssertionError("Loader class not found");
}

@Override
public List<FileInspection.Mod> getModpackNestedConflicts(Path modpackDir) {
throw new AssertionError("Loader class not found");
}
}
Loading