aboutsummaryrefslogtreecommitdiff
path: root/common/src/main/java/dev/isxander/yacl3/api/controller
diff options
context:
space:
mode:
authorKevin <92656833+kevinthegreat1@users.noreply.github.com>2023-11-18 04:07:39 -0500
committerGitHub <noreply@github.com>2023-11-18 09:07:39 +0000
commit442f48a6e28196910e92f460d3d677e3e47cbfc0 (patch)
tree3e34b77b7bf9707f8553a07abe629aab837a6130 /common/src/main/java/dev/isxander/yacl3/api/controller
parent953645023c829735663493511390948bf69714f8 (diff)
downloadYetAnotherConfigLib-442f48a6e28196910e92f460d3d677e3e47cbfc0.tar.gz
YetAnotherConfigLib-442f48a6e28196910e92f460d3d677e3e47cbfc0.tar.bz2
YetAnotherConfigLib-442f48a6e28196910e92f460d3d677e3e47cbfc0.zip
Add Enum Dropdown Controller (#117)
Diffstat (limited to 'common/src/main/java/dev/isxander/yacl3/api/controller')
-rw-r--r--common/src/main/java/dev/isxander/yacl3/api/controller/EnumDropdownControllerBuilder.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/common/src/main/java/dev/isxander/yacl3/api/controller/EnumDropdownControllerBuilder.java b/common/src/main/java/dev/isxander/yacl3/api/controller/EnumDropdownControllerBuilder.java
new file mode 100644
index 0000000..0814cc6
--- /dev/null
+++ b/common/src/main/java/dev/isxander/yacl3/api/controller/EnumDropdownControllerBuilder.java
@@ -0,0 +1,10 @@
+package dev.isxander.yacl3.api.controller;
+
+import dev.isxander.yacl3.api.Option;
+import dev.isxander.yacl3.impl.controller.EnumDropdownControllerBuilderImpl;
+
+public interface EnumDropdownControllerBuilder<E extends Enum<E>> extends ValueFormattableController<E, EnumDropdownControllerBuilder<E>> {
+ static <E extends Enum<E>> EnumDropdownControllerBuilder<E> create(Option<E> option) {
+ return new EnumDropdownControllerBuilderImpl<>(option);
+ }
+}