Class YamlSoundResourceLoader
java.lang.Object
com.winterhavenmc.library.messagebuilder.adapters.resources.sound.YamlSoundResourceLoader
- All Implemented Interfaces:
ResourceLoader
-
Constructor Summary
ConstructorsConstructorDescriptionYamlSoundResourceLoader(org.bukkit.plugin.Plugin plugin, ConfigRepository configRepository) YamlSoundResourceLoader(org.bukkit.plugin.Plugin plugin, Supplier<org.bukkit.configuration.file.YamlConfiguration> configurationSupplier, ConfigRepository configRepository) -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.configuration.file.FileConfigurationload()Load the language configuration object for the configured language from file and return it.org.bukkit.configuration.ConfigurationloadFromResource(LanguageTag fallback) Loads a language YAML file directly from the JAR resource as a last resort.
-
Constructor Details
-
YamlSoundResourceLoader
-
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:ResourceLoaderLoad 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:
loadin interfaceResourceLoader- Returns:
Configurationcontaining the configuration loaded from the language file
-
loadFromResource
Loads a language YAML file directly from the JAR resource as a last resort.
-