mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-22 16:41:46 +03:00
[FEATURE] Add OptionalMod.getDependencies()
This commit is contained in:
parent
f1559183a1
commit
f946c893e1
2 changed files with 8 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
import java.util.Set;
|
||||||
|
|
||||||
public class OptionalFile implements ProfileFeatureAPI.OptionalMod {
|
public class OptionalFile implements ProfileFeatureAPI.OptionalMod {
|
||||||
@LauncherNetworkAPI
|
@LauncherNetworkAPI
|
||||||
|
@ -72,6 +73,11 @@ public boolean isVisible() {
|
||||||
return visible;
|
return visible;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Set<ProfileFeatureAPI.OptionalMod> getDependencies() {
|
||||||
|
return Set.of(dependencies);
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isMark() {
|
public boolean isMark() {
|
||||||
return mark;
|
return mark;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
import java.util.Set;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import java.util.concurrent.CompletableFuture;
|
import java.util.concurrent.CompletableFuture;
|
||||||
|
|
||||||
|
@ -37,5 +38,6 @@ interface OptionalMod {
|
||||||
String getDescription();
|
String getDescription();
|
||||||
String getCategory();
|
String getCategory();
|
||||||
boolean isVisible();
|
boolean isVisible();
|
||||||
|
Set<OptionalMod> getDependencies();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue