From 091ce4c72c123f43f317c097818ace15f3a085fa Mon Sep 17 00:00:00 2001 From: DeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com> Date: Wed, 10 Aug 2022 10:15:01 +0200 Subject: Profile command (#88) * e * omg finish profile shit * api and fix 1.12.2 preprocess * fix class names --- api/OneConfig.api | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) (limited to 'api') diff --git a/api/OneConfig.api b/api/OneConfig.api index 3302d86..c904fe9 100644 --- a/api/OneConfig.api +++ b/api/OneConfig.api @@ -279,7 +279,7 @@ public abstract class cc/polyfrost/oneconfig/config/elements/BasicOption { public final field category Ljava/lang/String; protected final field field Ljava/lang/reflect/Field; public final field name Ljava/lang/String; - protected final field parent Ljava/lang/Object; + protected field parent Ljava/lang/Object; public final field size I public final field subcategory Ljava/lang/String; public fun (Ljava/lang/reflect/Field;Ljava/lang/Object;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V @@ -289,12 +289,15 @@ public abstract class cc/polyfrost/oneconfig/config/elements/BasicOption { public abstract fun draw (JII)V public fun drawLast (JII)V public fun get ()Ljava/lang/Object; + public fun getField ()Ljava/lang/reflect/Field; public abstract fun getHeight ()I + public fun getParent ()Ljava/lang/Object; 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 fun setParent (Ljava/lang/Object;)V } public class cc/polyfrost/oneconfig/config/elements/OptionCategory { @@ -386,22 +389,6 @@ public abstract interface annotation class cc/polyfrost/oneconfig/config/migrati public abstract fun subcategory ()Ljava/lang/String; } -public class cc/polyfrost/oneconfig/config/profiles/Profiles { - public static final field nonProfileSpecificDir Ljava/io/File; - public static final field profileDir Ljava/io/File; - public static field profiles Ljava/util/ArrayList; - public fun ()V - public static fun createProfile (Ljava/lang/String;)V - public static fun deleteProfile (Ljava/lang/String;)V - public static fun getCurrentProfile ()Ljava/lang/String; - public static fun getNonProfileSpecificDir (Ljava/lang/String;)Ljava/io/File; - public static fun getProfileDir ()Ljava/io/File; - public static fun getProfileDir (Ljava/lang/String;)Ljava/io/File; - public static fun getProfileFile (Ljava/lang/String;)Ljava/io/File; - public static fun loadProfile (Ljava/lang/String;)V - public static fun renameProfile (Ljava/lang/String;Ljava/lang/String;)V -} - public final class cc/polyfrost/oneconfig/events/EventManager { public static final field INSTANCE Lcc/polyfrost/oneconfig/events/EventManager; public fun getEventBus ()Lcc/polyfrost/oneconfig/libs/eventbus/EventBus; @@ -508,7 +495,6 @@ public class cc/polyfrost/oneconfig/gui/OneConfigGui : cc/polyfrost/oneconfig/li public field allowClose Z public field currentColorSelector Lcc/polyfrost/oneconfig/gui/elements/ColorSelector; protected field currentPage Lcc/polyfrost/oneconfig/gui/pages/Page; - public static field instanceToRestore Lcc/polyfrost/oneconfig/gui/OneConfigGui; public field mouseDown Z protected field prevPage Lcc/polyfrost/oneconfig/gui/pages/Page; public fun ()V -- cgit