Interface IConfigSpec.ILoadedConfig

All Known Implementing Classes:
LoadedConfig
Enclosing interface:
IConfigSpec

public static sealed interface IConfigSpec.ILoadedConfig permits LoadedConfig
  • Method Summary

    Modifier and Type
    Method
    Description
    com.electronwill.nightconfig.core.CommentedConfig
    Accesses the current config.
    void
    Saves the current value of the config() and dispatches a config reloading event.
  • Method Details

    • config

      com.electronwill.nightconfig.core.CommentedConfig config()
      Accesses the current config.

      The config locks internally, and is therefore safe to read/write across multiple threads without additional synchronization.

    • save

      void save()
      Saves the current value of the config() and dispatches a config reloading event.