aboutsummaryrefslogtreecommitdiff
path: root/api/OneConfig.api
diff options
context:
space:
mode:
Diffstat (limited to 'api/OneConfig.api')
-rw-r--r--api/OneConfig.api69
1 files changed, 33 insertions, 36 deletions
diff --git a/api/OneConfig.api b/api/OneConfig.api
index c047917..4f5a3bc 100644
--- a/api/OneConfig.api
+++ b/api/OneConfig.api
@@ -1,5 +1,6 @@
public class cc/polyfrost/oneconfig/config/Config {
protected final field configFile Ljava/lang/String;
+ protected final field defaults Ljava/util/HashMap;
public field enabled Z
protected final field gson Lcom/google/gson/Gson;
public field hasBeenInitialized Z
@@ -15,6 +16,7 @@ public class cc/polyfrost/oneconfig/config/Config {
protected fun deserializePart (Lcom/google/gson/JsonObject;Ljava/lang/Object;)V
protected fun generateOptionList (Ljava/lang/Object;Lcc/polyfrost/oneconfig/config/elements/OptionPage;Lcc/polyfrost/oneconfig/config/data/Mod;Z)V
protected fun getCustomOption (Ljava/lang/reflect/Field;Lcc/polyfrost/oneconfig/config/annotations/CustomOption;Lcc/polyfrost/oneconfig/config/elements/OptionPage;Lcc/polyfrost/oneconfig/config/data/Mod;Z)Lcc/polyfrost/oneconfig/config/elements/BasicOption;
+ public fun getDefault (Ljava/lang/reflect/Field;)Ljava/lang/Object;
protected fun hideIf (Ljava/lang/String;Ljava/lang/String;)V
protected fun hideIf (Ljava/lang/String;Ljava/util/function/Supplier;)V
protected fun hideIf (Ljava/lang/String;Z)V
@@ -22,6 +24,7 @@ public class cc/polyfrost/oneconfig/config/Config {
public fun load ()V
public fun openGui ()V
protected fun registerKeyBind (Lcc/polyfrost/oneconfig/config/core/OneKeyBind;Ljava/lang/Runnable;)V
+ public fun reset ()V
public fun save ()V
}
@@ -137,25 +140,6 @@ public abstract interface annotation class cc/polyfrost/oneconfig/config/annotat
public abstract fun subcategory ()Ljava/lang/String;
}
-public class cc/polyfrost/oneconfig/config/compatibility/vigilance/VigilanceConfig : cc/polyfrost/oneconfig/config/Config {
- public final field vigilant Lgg/essential/vigilance/Vigilant;
- public fun <init> (Lcc/polyfrost/oneconfig/config/data/Mod;Ljava/lang/String;Lgg/essential/vigilance/Vigilant;)V
- public fun addDependency (Lgg/essential/vigilance/data/PropertyData;Lgg/essential/vigilance/data/PropertyData;)V
- public fun initialize ()V
- public fun load ()V
- public fun save ()V
-}
-
-public abstract interface annotation class cc/polyfrost/oneconfig/config/compatibility/vigilance/VigilanceName : java/lang/annotation/Annotation {
- public abstract fun category ()Ljava/lang/String;
- public abstract fun name ()Ljava/lang/String;
- public abstract fun subcategory ()Ljava/lang/String;
-}
-
-public abstract interface class cc/polyfrost/oneconfig/config/compatibility/vigilance/VigilantAccessor {
- public abstract fun getPropertyCollector ()Lgg/essential/vigilance/data/PropertyCollector;
-}
-
public class cc/polyfrost/oneconfig/config/core/ConfigUtils {
public fun <init> ()V
public static fun addOptionToPage (Lcc/polyfrost/oneconfig/config/elements/OptionPage;Lcc/polyfrost/oneconfig/internal/config/annotations/Option;Ljava/lang/reflect/Field;Ljava/lang/Object;Lcc/polyfrost/oneconfig/config/migration/Migrator;)Lcc/polyfrost/oneconfig/config/elements/BasicOption;
@@ -299,12 +283,14 @@ public abstract class cc/polyfrost/oneconfig/config/elements/BasicOption {
public fun isEnabled ()Z
public fun isHidden ()Z
public fun keyTyped (CI)V
+ public fun reset (Lcc/polyfrost/oneconfig/config/Config;)V
protected fun set (Ljava/lang/Object;)V
}
public class cc/polyfrost/oneconfig/config/elements/OptionCategory {
public final field subcategories Ljava/util/ArrayList;
public fun <init> ()V
+ public fun reset (Lcc/polyfrost/oneconfig/config/Config;)V
}
public class cc/polyfrost/oneconfig/config/elements/OptionPage {
@@ -312,6 +298,7 @@ public class cc/polyfrost/oneconfig/config/elements/OptionPage {
public final field mod Lcc/polyfrost/oneconfig/config/data/Mod;
public final field name Ljava/lang/String;
public fun <init> (Ljava/lang/String;Lcc/polyfrost/oneconfig/config/data/Mod;)V
+ public fun reset (Lcc/polyfrost/oneconfig/config/Config;)V
}
public class cc/polyfrost/oneconfig/config/elements/OptionSubcategory {
@@ -322,6 +309,7 @@ public class cc/polyfrost/oneconfig/config/elements/OptionSubcategory {
public fun draw (JII)I
public fun drawLast (JI)V
public fun getName ()Ljava/lang/String;
+ public fun reset (Lcc/polyfrost/oneconfig/config/Config;)V
}
public class cc/polyfrost/oneconfig/config/gson/ExclusionUtils {
@@ -473,7 +461,7 @@ public abstract interface class cc/polyfrost/oneconfig/gui/GuiPause {
}
public class cc/polyfrost/oneconfig/gui/HudGui : cc/polyfrost/oneconfig/libs/universal/UScreen, cc/polyfrost/oneconfig/gui/GuiPause {
- public fun <init> ()V
+ public fun <init> (Z)V
public fun doesGuiPauseGame ()Z
public fun initScreen (II)V
public fun onDrawScreen (Lcc/polyfrost/oneconfig/libs/universal/UMatrixStack;IIF)V
@@ -857,7 +845,7 @@ public abstract class cc/polyfrost/oneconfig/gui/pages/Page {
public class cc/polyfrost/oneconfig/hud/HUDUtils {
public fun <init> ()V
- public static fun addHudOptions (Lcc/polyfrost/oneconfig/config/elements/OptionPage;Ljava/lang/reflect/Field;Ljava/lang/Object;)V
+ public static fun addHudOptions (Lcc/polyfrost/oneconfig/config/elements/OptionPage;Ljava/lang/reflect/Field;Ljava/lang/Object;Lcc/polyfrost/oneconfig/config/Config;)V
}
public abstract class cc/polyfrost/oneconfig/hud/Hud {
@@ -891,6 +879,8 @@ public abstract class cc/polyfrost/oneconfig/hud/Hud {
public abstract fun getWidth (F)I
public fun getXScaled (I)F
public fun getYScaled (I)F
+ public fun isEnabled ()Z
+ public fun setConfig (Lcc/polyfrost/oneconfig/config/Config;)V
}
public abstract class cc/polyfrost/oneconfig/hud/SingleTextHud : cc/polyfrost/oneconfig/hud/TextHud {
@@ -1069,14 +1059,10 @@ public final class cc/polyfrost/oneconfig/renderer/RenderManager {
public static fun drawSvg (JLjava/lang/String;FFFF)V
public static fun drawSvg (JLjava/lang/String;FFFFI)V
public static fun drawText (JLjava/lang/String;FFIFLcc/polyfrost/oneconfig/renderer/font/Font;)V
- public static fun drawText (JLjava/lang/String;FFIFLcc/polyfrost/oneconfig/renderer/font/Fonts;)V
public static fun drawURL (JLjava/lang/String;FFFLcc/polyfrost/oneconfig/renderer/font/Font;)V
- public static fun drawURL (JLjava/lang/String;FFFLcc/polyfrost/oneconfig/renderer/font/Fonts;)V
public static fun drawWrappedString (JLjava/lang/String;FFFIFLcc/polyfrost/oneconfig/renderer/font/Font;)V
- public static fun drawWrappedString (JLjava/lang/String;FFFIFLcc/polyfrost/oneconfig/renderer/font/Fonts;)V
public static fun fillNVGColorWithRGBA (FFFFLorg/lwjgl/nanovg/NVGColor;)V
public static fun getTextWidth (JLjava/lang/String;FLcc/polyfrost/oneconfig/renderer/font/Font;)F
- public static fun getTextWidth (JLjava/lang/String;FLcc/polyfrost/oneconfig/renderer/font/Fonts;)F
public static fun scale (JFF)V
public static fun setAlpha (JF)V
public static fun setupAndDraw (Ljava/util/function/LongConsumer;)V
@@ -1092,6 +1078,20 @@ public final class cc/polyfrost/oneconfig/renderer/RenderManager$TextType : java
public static fun values ()[Lcc/polyfrost/oneconfig/renderer/RenderManager$TextType;
}
+public class cc/polyfrost/oneconfig/renderer/TextRenderer {
+ public fun <init> ()V
+ public static fun drawText (JLjava/lang/String;FFIFLcc/polyfrost/oneconfig/renderer/font/Font;)V
+ public static fun drawText (JLjava/lang/String;FFIFLcc/polyfrost/oneconfig/renderer/font/Font;F)V
+ public static fun drawText (JLjava/util/ArrayList;FFIFLcc/polyfrost/oneconfig/renderer/font/Font;F)V
+ public static fun drawText (JLjava/util/ArrayList;FFIFLcc/polyfrost/oneconfig/renderer/font/Font;FF)V
+ public static fun drawURL (JLjava/lang/String;FFFLcc/polyfrost/oneconfig/renderer/font/Font;)V
+ public static fun drawWrappedString (JLjava/lang/String;FFFIFLcc/polyfrost/oneconfig/renderer/font/Font;)V
+ public static fun getTextWidth (JLjava/lang/String;FLcc/polyfrost/oneconfig/renderer/font/Font;)F
+ public static fun getTextWidth (JLjava/lang/String;FLcc/polyfrost/oneconfig/renderer/font/Font;F)F
+ public static fun wrapText (JLjava/lang/String;FFLcc/polyfrost/oneconfig/renderer/font/Font;)Ljava/util/ArrayList;
+ public static fun wrapText (JLjava/lang/String;FFLcc/polyfrost/oneconfig/renderer/font/Font;F)Ljava/util/ArrayList;
+}
+
public class cc/polyfrost/oneconfig/renderer/font/Font {
public fun <init> (Ljava/lang/String;Ljava/lang/String;)V
public fun getBuffer ()Ljava/nio/ByteBuffer;
@@ -1107,16 +1107,14 @@ public class cc/polyfrost/oneconfig/renderer/font/FontManager {
public fun loadFont (JLcc/polyfrost/oneconfig/renderer/font/Font;)V
}
-public final class cc/polyfrost/oneconfig/renderer/font/Fonts : java/lang/Enum {
- public static final field BOLD Lcc/polyfrost/oneconfig/renderer/font/Fonts;
- public static final field MEDIUM Lcc/polyfrost/oneconfig/renderer/font/Fonts;
- public static final field MINECRAFT_BOLD Lcc/polyfrost/oneconfig/renderer/font/Fonts;
- public static final field MINECRAFT_REGULAR Lcc/polyfrost/oneconfig/renderer/font/Fonts;
- public static final field REGULAR Lcc/polyfrost/oneconfig/renderer/font/Fonts;
- public static final field SEMIBOLD Lcc/polyfrost/oneconfig/renderer/font/Fonts;
- public final field font Lcc/polyfrost/oneconfig/renderer/font/Font;
- public static fun valueOf (Ljava/lang/String;)Lcc/polyfrost/oneconfig/renderer/font/Fonts;
- public static fun values ()[Lcc/polyfrost/oneconfig/renderer/font/Fonts;
+public class cc/polyfrost/oneconfig/renderer/font/Fonts {
+ public static final field BOLD Lcc/polyfrost/oneconfig/renderer/font/Font;
+ public static final field MEDIUM Lcc/polyfrost/oneconfig/renderer/font/Font;
+ public static final field MINECRAFT_BOLD Lcc/polyfrost/oneconfig/renderer/font/Font;
+ public static final field MINECRAFT_REGULAR Lcc/polyfrost/oneconfig/renderer/font/Font;
+ public static final field REGULAR Lcc/polyfrost/oneconfig/renderer/font/Font;
+ public static final field SEMIBOLD Lcc/polyfrost/oneconfig/renderer/font/Font;
+ public fun <init> ()V
}
public class cc/polyfrost/oneconfig/renderer/scissor/Scissor {
@@ -1201,7 +1199,6 @@ public final class cc/polyfrost/oneconfig/utils/NetworkUtils {
public final class cc/polyfrost/oneconfig/utils/TextUtils {
public fun <init> ()V
public static fun wrapText (JLjava/lang/String;FFLcc/polyfrost/oneconfig/renderer/font/Font;)Ljava/util/ArrayList;
- public static fun wrapText (JLjava/lang/String;FFLcc/polyfrost/oneconfig/renderer/font/Fonts;)Ljava/util/ArrayList;
}
public class cc/polyfrost/oneconfig/utils/TickDelay {