CompleteConfigExtension.java 835 B

12345678910111213141516171819202122232425262728293031
  1. package me.lortseam.completeconfig.extensions;
  2. import me.lortseam.completeconfig.data.transform.Transformation;
  3. import org.spongepowered.configurate.serialize.TypeSerializerCollection;
  4. /**
  5. * The main CompleteConfig extension type. Used for the {@code completeconfig-extension} entrypoint.
  6. */
  7. public interface CompleteConfigExtension extends Extension {
  8. /**
  9. * Used to register custom type serializers for config entries.
  10. *
  11. * @return a collection of custom type serializers
  12. */
  13. default TypeSerializerCollection getTypeSerializers() {
  14. return null;
  15. }
  16. /**
  17. * Used to register custom entry transformations.
  18. *
  19. * @return an array of custom transformations
  20. *
  21. * @see Transformation
  22. */
  23. default Transformation[] getTransformations() {
  24. return null;
  25. }
  26. }