From af4484ecee46300a26952b9b9b41e7a2e80d3f78 Mon Sep 17 00:00:00 2001 From: isXander Date: Mon, 14 Nov 2022 21:11:58 +0000 Subject: changelog & doc update --- src/main/java/dev/isxander/yacl/config/GsonConfigInstance.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/dev/isxander/yacl/config/GsonConfigInstance.java b/src/main/java/dev/isxander/yacl/config/GsonConfigInstance.java index 5d19e48..40c2c99 100644 --- a/src/main/java/dev/isxander/yacl/config/GsonConfigInstance.java +++ b/src/main/java/dev/isxander/yacl/config/GsonConfigInstance.java @@ -7,7 +7,6 @@ import net.minecraft.text.Text; import java.awt.*; import java.io.IOException; -import java.lang.reflect.Modifier; import java.lang.reflect.Type; import java.nio.file.Files; import java.nio.file.Path; @@ -17,7 +16,7 @@ import java.util.function.UnaryOperator; /** * Uses GSON to serialize and deserialize config data from JSON to a file. * - * You can exclude fields from serialization by marking them as transient. + * Only fields annotated with {@link ConfigEntry} are included in the JSON. * {@link Text}, {@link Style} and {@link Color} have default type adapters, so there is no need to provide them in your GSON instance. * GSON is automatically configured to format fields as {@code lower_camel_case}. * -- cgit