ConfigGroup.java 640 B

12345678910111213141516171819202122232425
  1. package me.lortseam.completeconfig.api;
  2. import com.google.common.base.CaseFormat;
  3. /**
  4. * A group of config entries. Every group has a unique identifier inside its parent node.
  5. */
  6. public interface ConfigGroup extends ConfigEntryContainer {
  7. /**
  8. * Used to identify this group. Defaults to the class name.
  9. *
  10. * <p>Override this method to set a custom ID.
  11. *
  12. * @return the ID of this group
  13. */
  14. default String getConfigGroupID() {
  15. return CaseFormat.UPPER_CAMEL.to(CaseFormat.LOWER_CAMEL, getClass().getSimpleName());
  16. }
  17. default String[] getCustomTooltipKeys() {
  18. return null;
  19. }
  20. }