All Superinterfaces:
ConfigProvider<LocaleSetting>
All Known Implementing Classes:
BukkitConfigRepository

public interface ConfigRepository extends ConfigProvider<LocaleSetting>
  • Method Details

    • get

      Returns the resolved LocaleSetting based on the plugin configuration.
      Specified by:
      get in interface ConfigProvider<LocaleSetting>
      Returns:
      a locale setting encapsulating a LanguageTag
    • languageTag

      LanguageTag languageTag()
      Returns the resolved LanguageTag representing the locale tag.
      Returns:
      a valid LanguageTag
    • locale

      Locale locale()
      Returns the Locale object derived from the configuration.
      Returns:
      a Java Locale
    • zoneId

      ZoneId zoneId()
      Returns the configured ZoneId if valid, or the system default otherwise.
      Returns:
      the applicable time zone as represented by a ZoneId object.
    • language

      String language()