aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/config/annotations/Page.java
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-06-07 17:56:57 +0200
committerDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-06-07 17:56:57 +0200
commit813f3193c6d017701948d32caa9c5b7ed07d083d (patch)
tree1a735f41ddb03a9fe501ac9f2b032e6a91cbadcc /src/main/java/cc/polyfrost/oneconfig/config/annotations/Page.java
parent48d30c844ecbd132eee3a3c53597c9853d7cd4a3 (diff)
downloadOneConfig-813f3193c6d017701948d32caa9c5b7ed07d083d.tar.gz
OneConfig-813f3193c6d017701948d32caa9c5b7ed07d083d.tar.bz2
OneConfig-813f3193c6d017701948d32caa9c5b7ed07d083d.zip
finish config system rewrite
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/config/annotations/Page.java')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/config/annotations/Page.java37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/config/annotations/Page.java b/src/main/java/cc/polyfrost/oneconfig/config/annotations/Page.java
new file mode 100644
index 0000000..2e93a7d
--- /dev/null
+++ b/src/main/java/cc/polyfrost/oneconfig/config/annotations/Page.java
@@ -0,0 +1,37 @@
+package cc.polyfrost.oneconfig.config.annotations;
+
+import cc.polyfrost.oneconfig.config.data.PageLocation;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Retention(RetentionPolicy.RUNTIME)
+@Target(ElementType.FIELD)
+public @interface Page {
+ /**
+ * The name of the page that will be displayed to the user
+ */
+ String name();
+
+ /**
+ * If the page button is at the top or bottem of the page
+ */
+ PageLocation location();
+
+ /**
+ * The description of the page that will be displayed to the user
+ */
+ String description() default "";
+
+ /**
+ * The category of the page
+ */
+ String category() default "General";
+
+ /**
+ * The subcategory of the page
+ */
+ String subcategory() default "";
+}