aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/config/data
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/config/data')
-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;