aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorisXander <xandersmith2008@gmail.com>2022-11-14 21:11:58 +0000
committerisXander <xandersmith2008@gmail.com>2022-11-14 21:12:05 +0000
commitaf4484ecee46300a26952b9b9b41e7a2e80d3f78 (patch)
treed3fb610bf9e0c87158aa181fbd233fdc887a6349 /src
parent8d58e2e56e2a28b1209bb5111ad3833fd74594fa (diff)
downloadYetAnotherConfigLib-af4484ecee46300a26952b9b9b41e7a2e80d3f78.tar.gz
YetAnotherConfigLib-af4484ecee46300a26952b9b9b41e7a2e80d3f78.tar.bz2
YetAnotherConfigLib-af4484ecee46300a26952b9b9b41e7a2e80d3f78.zip
changelog & doc update
Diffstat (limited to 'src')
-rw-r--r--src/main/java/dev/isxander/yacl/config/GsonConfigInstance.java3
1 files changed, 1 insertions, 2 deletions
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}.
*