Class YamlConfig


  • public final class YamlConfig
    extends Object
    Represents configuration, utilising YAML
    • Method Detail

      • getAnnotationRegistry

        public static com.mrivanplays.annotationconfig.core.CustomAnnotationRegistry getAnnotationRegistry()
        Returns the CustomAnnotationRegistry for this config.
        Returns:
        custom annotation registry
      • load

        public static void load​(Object annotatedConfig,
                                File file)
        Loads the config object from the file. If the file does not exist, it creates one.
        Parameters:
        annotatedConfig - annotated config
        file - file