java.lang.Object
com.winterhavenmc.library.messagebuilder.adapters.resources.sound.YamlSoundResourceLoader
All Implemented Interfaces:
ResourceLoader

public final class YamlSoundResourceLoader extends Object implements ResourceLoader
  • Constructor Details

    • YamlSoundResourceLoader

      public YamlSoundResourceLoader(org.bukkit.plugin.Plugin plugin, ConfigRepository configRepository)
    • YamlSoundResourceLoader

      public YamlSoundResourceLoader(org.bukkit.plugin.Plugin plugin, Supplier<org.bukkit.configuration.file.YamlConfiguration> configurationSupplier, ConfigRepository configRepository)
  • Method Details

    • load

      public org.bukkit.configuration.file.FileConfiguration load()
      Description copied from interface: ResourceLoader
      Load the language configuration object for the configured language from file and return it. The returned configuration object contains no default values loaded, by design
      Specified by:
      load in interface ResourceLoader
      Returns:
      Configuration containing the configuration loaded from the language file
    • loadFromResource

      public org.bukkit.configuration.Configuration loadFromResource(LanguageTag fallback)
      Loads a language YAML file directly from the JAR resource as a last resort.