Lortseam 4 jaren geleden
bovenliggende
commit
9b01db874b

+ 4 - 0
src/main/java/me/lortseam/completeconfig/ModController.java

@@ -4,6 +4,7 @@ import lombok.AccessLevel;
 import lombok.Getter;
 import lombok.RequiredArgsConstructor;
 import me.lortseam.completeconfig.data.ColorEntry;
+import me.lortseam.completeconfig.data.Config;
 import me.lortseam.completeconfig.util.TypeUtils;
 import net.fabricmc.loader.api.FabricLoader;
 import net.fabricmc.loader.api.ModContainer;
@@ -55,6 +56,9 @@ public final class ModController {
     /**
      * Registers custom type serializers, applied to all following mod configs.
      *
+     * <p>To register type serializers for a specific config only, use
+     * {@link Config.Builder#registerTypeSerializers(TypeSerializerCollection)}.
+     *
      * @param typeSerializers the type serializers
      */
     public void registerTypeSerializers(TypeSerializerCollection typeSerializers) {

+ 3 - 0
src/main/java/me/lortseam/completeconfig/data/Config.java

@@ -97,6 +97,9 @@ public class Config extends CollectionMap {
         /**
          * Registers custom type serializers, applied only to this config.
          *
+         * <p>To register type serializers for every config of your mod, use
+         * {@link ModController#registerTypeSerializers(TypeSerializerCollection)}.
+         *
          * @param typeSerializers the type serializers
          * @return this builder
          */