From 4c60b452efda24794c0faa5f300fdd830edcd383 Mon Sep 17 00:00:00 2001 From: nextdaydelivery <79922345+nxtdaydelivery@users.noreply.github.com> Date: Sat, 3 Sep 2022 12:50:40 +0100 Subject: 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 --- src/main/java/cc/polyfrost/oneconfig/config/data/Mod.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/main/java/cc/polyfrost/oneconfig/config/data/Mod.java') 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 { + @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 { * @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; -- cgit