From 73a628df04fa69eaafbc3ec95f8bc03c51cc9339 Mon Sep 17 00:00:00 2001 From: Anastasia Chrysanthemum Date: Sat, 28 Feb 2026 16:31:01 +1100 Subject: [PATCH] chore: Reformat code. --- .../api/v3/GreenhouseConfigValueCodec.java | 21 ++++++++++--------- .../config/impl/GreenhouseConfigImpl.java | 2 +- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/xplat/src/main/java/lgbt/greenhouse/config/api/v3/GreenhouseConfigValueCodec.java b/xplat/src/main/java/lgbt/greenhouse/config/api/v3/GreenhouseConfigValueCodec.java index 12ae2c0..c59bef5 100644 --- a/xplat/src/main/java/lgbt/greenhouse/config/api/v3/GreenhouseConfigValueCodec.java +++ b/xplat/src/main/java/lgbt/greenhouse/config/api/v3/GreenhouseConfigValueCodec.java @@ -9,6 +9,7 @@ import java.util.stream.Stream; /** * A {@link MapCodec} used for values when directly using {@link Codec}s with Greenhouse Config. + * * @param The class representation of this codec. * @see lgbt.greenhouse.config.api.v3.builder.GreenhouseConfigHolderBuilder#direct(Codec) */ @@ -38,11 +39,11 @@ public class GreenhouseConfigValueCodec extends MapCodec { /** * Creates a config value codec. * - * @param name The name of the field within the config. + * @param name The name of the field within the config. * @param elementCodec An element codec to use for this config value. * @param defaultValue The default value for this config value. + * @param The class representation of the codec. * @return A config value codec. - * @param The class representation of the codec. */ public static GreenhouseConfigValueCodec create(String name, Codec elementCodec, E defaultValue) { return create(name, null, elementCodec, defaultValue); @@ -51,12 +52,12 @@ public class GreenhouseConfigValueCodec extends MapCodec { /** * Creates a config value codec. * - * @param name The name of the field within the config. - * @param comments Any comments separated by newlines to encode alongside the value within the config file. + * @param name The name of the field within the config. + * @param comments Any comments separated by newlines to encode alongside the value within the config file. * @param elementCodec An element codec to use for this config value. * @param defaultValue The default value for this config value. + * @param The class representation of the codec. * @return A config value codec. - * @param The class representation of the codec. */ public static GreenhouseConfigValueCodec create(String name, @Nullable String comments, Codec elementCodec, E defaultValue) { return new GreenhouseConfigValueCodec<>(name, comments, elementCodec, () -> defaultValue, DefaultValueCommentSettings.APPEND); @@ -65,13 +66,13 @@ public class GreenhouseConfigValueCodec extends MapCodec { /** * Creates a config value codec. * - * @param name The name of the field within the config. - * @param comments Any comments separated by newlines to encode alongside the value within the config file. - * @param elementCodec An element codec to use for this config value. - * @param defaultValue The default value for this config value. + * @param name The name of the field within the config. + * @param comments Any comments separated by newlines to encode alongside the value within the config file. + * @param elementCodec An element codec to use for this config value. + * @param defaultValue The default value for this config value. * @param defaultValueCommentSettings Determines how the config should handle the additional comment defining the default value. + * @param The class representation of the codec. * @return A config value codec. - * @param The class representation of the codec. */ public static GreenhouseConfigValueCodec create(String name, @Nullable String comments, Codec elementCodec, E defaultValue, DefaultValueCommentSettings defaultValueCommentSettings) { return new GreenhouseConfigValueCodec<>(name, comments, elementCodec, () -> defaultValue, defaultValueCommentSettings); diff --git a/xplat/src/main/java/lgbt/greenhouse/config/impl/GreenhouseConfigImpl.java b/xplat/src/main/java/lgbt/greenhouse/config/impl/GreenhouseConfigImpl.java index 18b803f..cbbf4d5 100644 --- a/xplat/src/main/java/lgbt/greenhouse/config/impl/GreenhouseConfigImpl.java +++ b/xplat/src/main/java/lgbt/greenhouse/config/impl/GreenhouseConfigImpl.java @@ -224,7 +224,7 @@ public class GreenhouseConfigImpl { var config = loadConfigInternal(holder); CURRENTLY_LOADING.remove(); - AbstractGreenhouseConfigHolderImpl impl = (AbstractGreenhouseConfigHolderImpl)holder; + AbstractGreenhouseConfigHolderImpl impl = (AbstractGreenhouseConfigHolderImpl) holder; var localData = impl.getLocalData(config); var networkData = impl.getNetworkData(config); -- 2.51.2