aboutsummaryrefslogtreecommitdiff
path: root/api
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 /api
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 'api')
-rw-r--r--api/OneConfig.api13
1 files changed, 12 insertions, 1 deletions
diff --git a/api/OneConfig.api b/api/OneConfig.api
index f99cbdc..aafb10b 100644
--- a/api/OneConfig.api
+++ b/api/OneConfig.api
@@ -1081,15 +1081,18 @@ public abstract interface class cc/polyfrost/oneconfig/platform/I18nPlatform {
public abstract interface class cc/polyfrost/oneconfig/platform/LoaderPlatform {
public abstract fun getActiveModContainer ()Lcc/polyfrost/oneconfig/platform/LoaderPlatform$ActiveMod;
+ public abstract fun getLoadedMods ()Ljava/util/List;
public abstract fun hasActiveModContainer ()Z
public abstract fun isModLoaded (Ljava/lang/String;)Z
+ public abstract fun toActiveMod (Ljava/lang/Object;)Lcc/polyfrost/oneconfig/platform/LoaderPlatform$ActiveMod;
}
public class cc/polyfrost/oneconfig/platform/LoaderPlatform$ActiveMod {
public final field id Ljava/lang/String;
public final field name Ljava/lang/String;
+ public final field source Ljava/io/File;
public final field version Ljava/lang/String;
- public fun <init> (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
+ public fun <init> (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)V
}
public abstract interface class cc/polyfrost/oneconfig/platform/MousePlatform {
@@ -1136,6 +1139,7 @@ public abstract interface class cc/polyfrost/oneconfig/platform/Platform {
public static fun getNanoVGPlatform ()Lcc/polyfrost/oneconfig/platform/NanoVGPlatform;
public static fun getServerPlatform ()Lcc/polyfrost/oneconfig/platform/ServerPlatform;
public abstract fun isCallingFromMinecraftThread ()Z
+ public abstract fun isDevelopmentEnvironment ()Z
}
public final class cc/polyfrost/oneconfig/platform/Platform$Loader : java/lang/Enum {
@@ -1351,6 +1355,13 @@ public final class cc/polyfrost/oneconfig/utils/JsonUtils {
public static fun parseString (Ljava/lang/String;Z)Lcom/google/gson/JsonElement;
}
+public class cc/polyfrost/oneconfig/utils/LogScanner {
+ public fun <init> ()V
+ public static fun identifyCallerFromStacktrace (Ljava/lang/Throwable;)Ljava/util/Set;
+ public static fun identifyFromClass (Ljava/lang/String;)Ljava/util/Set;
+ public static fun identifyFromStacktrace (Ljava/lang/Throwable;)Ljava/util/Set;
+}
+
public final class cc/polyfrost/oneconfig/utils/MathUtils {
public fun <init> ()V
public static fun clamp (F)F