aboutsummaryrefslogtreecommitdiff
path: root/src/client/java/dev/isxander/yacl/api/NameableEnum.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/java/dev/isxander/yacl/api/NameableEnum.java')
-rw-r--r--src/client/java/dev/isxander/yacl/api/NameableEnum.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/client/java/dev/isxander/yacl/api/NameableEnum.java b/src/client/java/dev/isxander/yacl/api/NameableEnum.java
new file mode 100644
index 0000000..793b230
--- /dev/null
+++ b/src/client/java/dev/isxander/yacl/api/NameableEnum.java
@@ -0,0 +1,10 @@
+package dev.isxander.yacl.api;
+
+import net.minecraft.text.Text;
+
+/**
+ * Used for the default value formatter of {@link dev.isxander.yacl.gui.controllers.cycling.EnumController}
+ */
+public interface NameableEnum {
+ Text getDisplayName();
+}