aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/src/main/java/dev/isxander/yacl3/config/v2/api/autogen/ColorField.java (renamed from common/src/main/java/dev/isxander/yacl3/config/v2/api/autogen/ColorRGBA.java)2
-rw-r--r--common/src/main/java/dev/isxander/yacl3/config/v2/impl/autogen/ColorFieldImpl.java (renamed from common/src/main/java/dev/isxander/yacl3/config/v2/impl/autogen/ColorRGBAImpl.java)6
-rw-r--r--common/src/main/java/dev/isxander/yacl3/config/v2/impl/autogen/OptionFactoryRegistry.java2
3 files changed, 5 insertions, 5 deletions
diff --git a/common/src/main/java/dev/isxander/yacl3/config/v2/api/autogen/ColorRGBA.java b/common/src/main/java/dev/isxander/yacl3/config/v2/api/autogen/ColorField.java
index 7e76e27..74937b4 100644
--- a/common/src/main/java/dev/isxander/yacl3/config/v2/api/autogen/ColorRGBA.java
+++ b/common/src/main/java/dev/isxander/yacl3/config/v2/api/autogen/ColorField.java
@@ -13,7 +13,7 @@ import java.lang.annotation.Target;
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
-public @interface ColorRGBA {
+public @interface ColorField {
/**
* Whether to show/allow the alpha channel in the color field.
*/
diff --git a/common/src/main/java/dev/isxander/yacl3/config/v2/impl/autogen/ColorRGBAImpl.java b/common/src/main/java/dev/isxander/yacl3/config/v2/impl/autogen/ColorFieldImpl.java
index 81d62bb..7910c59 100644
--- a/common/src/main/java/dev/isxander/yacl3/config/v2/impl/autogen/ColorRGBAImpl.java
+++ b/common/src/main/java/dev/isxander/yacl3/config/v2/impl/autogen/ColorFieldImpl.java
@@ -5,14 +5,14 @@ import dev.isxander.yacl3.api.controller.ColorControllerBuilder;
import dev.isxander.yacl3.api.controller.ControllerBuilder;
import dev.isxander.yacl3.config.v2.api.ConfigField;
import dev.isxander.yacl3.config.v2.api.autogen.SimpleOptionFactory;
-import dev.isxander.yacl3.config.v2.api.autogen.ColorRGBA;
+import dev.isxander.yacl3.config.v2.api.autogen.ColorField;
import dev.isxander.yacl3.config.v2.api.autogen.OptionAccess;
import java.awt.Color;
-public class ColorRGBAImpl extends SimpleOptionFactory<ColorRGBA, Color> {
+public class ColorFieldImpl extends SimpleOptionFactory<ColorField, Color> {
@Override
- protected ControllerBuilder<Color> createController(ColorRGBA annotation, ConfigField<Color> field, OptionAccess storage, Option<Color> option) {
+ protected ControllerBuilder<Color> createController(ColorField annotation, ConfigField<Color> field, OptionAccess storage, Option<Color> option) {
return ColorControllerBuilder.create(option)
.allowAlpha(annotation.allowAlpha());
}
diff --git a/common/src/main/java/dev/isxander/yacl3/config/v2/impl/autogen/OptionFactoryRegistry.java b/common/src/main/java/dev/isxander/yacl3/config/v2/impl/autogen/OptionFactoryRegistry.java
index fe63234..4bcf5d6 100644
--- a/common/src/main/java/dev/isxander/yacl3/config/v2/impl/autogen/OptionFactoryRegistry.java
+++ b/common/src/main/java/dev/isxander/yacl3/config/v2/impl/autogen/OptionFactoryRegistry.java
@@ -30,7 +30,7 @@ public class OptionFactoryRegistry {
registerOptionFactory(DoubleField.class, new DoubleFieldImpl());
registerOptionFactory(EnumCycler.class, new EnumCyclerImpl());
registerOptionFactory(StringField.class, new StringFieldImpl());
- registerOptionFactory(ColorRGBA.class, new ColorRGBAImpl());
+ registerOptionFactory(ColorField.class, new ColorFieldImpl());
registerOptionFactory(Label.class, new LabelImpl());
registerOptionFactory(ListGroup.class, new ListGroupImpl<>());