aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/config/data/Mod.java
diff options
context:
space:
mode:
authornextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com>2022-09-03 12:50:40 +0100
committerGitHub <noreply@github.com>2022-09-03 13:50:40 +0200
commit4c60b452efda24794c0faa5f300fdd830edcd383 (patch)
tree06c4d425bdc405af0189f4707ba1302b864f7328 /src/main/java/cc/polyfrost/oneconfig/config/data/Mod.java
parentb7169237c543bf549a4b03dcc9a23b516da635eb (diff)
downloadOneConfig-4c60b452efda24794c0faa5f300fdd830edcd383.tar.gz
OneConfig-4c60b452efda24794c0faa5f300fdd830edcd383.tar.bz2
OneConfig-4c60b452efda24794c0faa5f300fdd830edcd383.zip
deprecator + Stack trace utilities (#121)
* deprecator * check for more system packages because iterators n stuff * add LogScanner, new loader platform features, spam protection * oop~ * move to Preferences * diamond review * add back the exception * try-catch things and associate OneConfig mods with an ActiveMod * ok maybe not + api my beloved
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/config/data/Mod.java')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/config/data/Mod.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/config/data/Mod.java b/src/main/java/cc/polyfrost/oneconfig/config/data/Mod.java
index 61517ab..f77639f 100644
--- a/src/main/java/cc/polyfrost/oneconfig/config/data/Mod.java
+++ b/src/main/java/cc/polyfrost/oneconfig/config/data/Mod.java
@@ -29,15 +29,18 @@ package cc.polyfrost.oneconfig.config.data;
import cc.polyfrost.oneconfig.config.Config;
import cc.polyfrost.oneconfig.config.elements.OptionPage;
import cc.polyfrost.oneconfig.config.migration.Migrator;
-import cc.polyfrost.oneconfig.internal.config.OneConfigConfig;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
public class Mod implements Comparable<Mod> {
+ @NotNull
public final String name;
public final ModType modType;
+ @Nullable
public final String modIcon;
+ @Nullable
public final Migrator migrator;
+ @NotNull
public final OptionPage defaultPage;
public Config config;
@@ -47,7 +50,7 @@ public class Mod implements Comparable<Mod> {
* @param modIcon Path to icon of the mod (png or svg format)
* @param migrator Migrator class to port the old config
*/
- public Mod(String name, ModType modType, @Nullable String modIcon, @Nullable Migrator migrator) {
+ public Mod(@NotNull String name, ModType modType, @Nullable String modIcon, @Nullable Migrator migrator) {
this.name = name;
this.modType = modType;
this.modIcon = modIcon;