diff options
author | isXander <xander@isxander.dev> | 2023-08-15 17:34:07 +0100 |
---|---|---|
committer | isXander <xander@isxander.dev> | 2023-08-15 17:34:07 +0100 |
commit | eac4c6364fc9c98777cc526ed800bcc3acfdea8e (patch) | |
tree | 69e1796d3bd625934e2dc1677646f291eac3ca51 /common/src/main/java/dev | |
parent | d1ef9c7286dbb241bf3fc072065edef3b20421c1 (diff) | |
download | YetAnotherConfigLib-eac4c6364fc9c98777cc526ed800bcc3acfdea8e.tar.gz YetAnotherConfigLib-eac4c6364fc9c98777cc526ed800bcc3acfdea8e.tar.bz2 YetAnotherConfigLib-eac4c6364fc9c98777cc526ed800bcc3acfdea8e.zip |
Rename @ColorRGBA to @ColorField
Diffstat (limited to 'common/src/main/java/dev')
-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.java | 2 |
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<>()); |