import { ResourceHandler } from './ResourceHandler'; /** * Loads Minecraft resources in-memory. */ export declare class ResourceLoader { private readonly resourceHandler; constructor(); /** * @returns {ResourceHandler} The handler that contains all loaded resources. */ getResourceHandler(): ResourceHandler; /** * Load all icon files from the given path. * @param {string} iconsPath Path to an directory containing icon files. * @returns {Promise} A promise resolving when loading is done. */ loadIcons(iconsPath: string): Promise; /** * Load all item translation keys from the 'item_translation_keys.json' file. * @param {string} registriesPath A registries path. * @returns {Promise} A promise resolving when loading is done. */ loadItemTranslationKeys(registriesPath: string): Promise; /** * Load all fluid translation keys from the 'fluid_translation_keys.json' file. * @param {string} registriesPath A registries path. * @returns {Promise} A promise resolving when loading is done. */ loadFluidTranslationKeys(registriesPath: string): Promise; /** * Load all resources within the given paths. * @param {string} baseDir A base directory. * @param {string} path A path. * @param {string[]} excludedModLanguages Excluded mod languages. * @returns {Promise} A promise resolving when loading is done. */ loadAll(baseDir: string, path: string, excludedModLanguages: string[]): Promise; /** * Load a resource somewhere within the given path. * * Once a mcmod.info file is found, this path will be assumed to be a resource pack. * * @param {string} fullPath A full path to look in. * @returns {Promise} A promise resolving when loading is done. */ load(fullPath: string, excludedModLanguages: string[]): Promise; /** * Load the assets of the given pack. * @param {string} modid A mod id. * @param {string} fullPath The full path of the pack. * @returns {Promise} A promise resolving when loading is done. */ loadAssets(modid: string, fullPath: string, excludedModLanguage: boolean): Promise; /** * Load the language file within the given language folder. * @param {string} modid A mod id. * @param {string} langDir The full language directory path. * @returns {Promise} A promise resolving when loading is done. */ loadAssetsLang(modid: string, langDir: string, excludedModLanguage: boolean): Promise; /** * Load a single language file. * @param {string} modid A mod id. * @param {string} language A language key. * @param {string} fullFilePath The full language file path. * @returns {Promise} A promise resolving when loading is done. */ loadAssetsLangFile(modid: string, language: string, fullFilePath: string, excludedModLanguage: boolean): Promise; /** * Load the advancements within the given folder, recursively. * @param {string} modid A mod id. * @param {string} advancementsDir A folder. * @param {string} idPrefix The prefix to use for advancement id. */ loadAssetsAdvancements(modid: string, advancementsDir: string, idPrefix: string): Promise; /** * Load the advancement in the given file. * @param {string} modid A mod id. * @param {string} advancementsFile A file. * @param {string} id The id of the advancement. */ loadAssetsAdvancement(modid: string, advancementsFile: string, id: string): Promise; /** * Load the given keybindings. * @param {{[p: string]: string}} keybindings Keybindings. */ loadKeybindings(keybindings: Record): void; }