aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/config/annotations/KeyBind.java
diff options
context:
space:
mode:
authorWyvest <45589059+Wyvest@users.noreply.github.com>2022-06-07 21:15:51 +0700
committerWyvest <45589059+Wyvest@users.noreply.github.com>2022-06-07 21:15:51 +0700
commit98ed87a68284f1f0756b01c07d957cbb4bd4e09c (patch)
treec72f4563aab765dbffa3804475a4e7e57907bc76 /src/main/java/cc/polyfrost/oneconfig/config/annotations/KeyBind.java
parent44f69da8e5eb1a10e3833bd55dd97a7bd274f2ca (diff)
parent4d447988d5318895a92256cde93420456a04bd57 (diff)
downloadOneConfig-98ed87a68284f1f0756b01c07d957cbb4bd4e09c.tar.gz
OneConfig-98ed87a68284f1f0756b01c07d957cbb4bd4e09c.tar.bz2
OneConfig-98ed87a68284f1f0756b01c07d957cbb4bd4e09c.zip
Merge branch 'master' of https://github.com/Polyfrost/OneConfig
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/config/annotations/KeyBind.java')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/config/annotations/KeyBind.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/config/annotations/KeyBind.java b/src/main/java/cc/polyfrost/oneconfig/config/annotations/KeyBind.java
new file mode 100644
index 0000000..7d6cfdc
--- /dev/null
+++ b/src/main/java/cc/polyfrost/oneconfig/config/annotations/KeyBind.java
@@ -0,0 +1,22 @@
+package cc.polyfrost.oneconfig.config.annotations;
+
+import cc.polyfrost.oneconfig.config.data.OptionType;
+import cc.polyfrost.oneconfig.internal.config.annotations.Option;
+
+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)
+@Option(type = OptionType.KEYBIND)
+public @interface KeyBind {
+ String name();
+
+ int size() default 1;
+
+ String category() default "General";
+
+ String subcategory() default "";
+}