@xmcl/resourcepack
Version:
A Minecraft resource pack parser
27 lines • 909 B
TypeScript
import { Resource } from './resourcePack';
import { ResourceLoader } from './resourceManager';
import { BlockModel } from './format';
/**
* The model loader load the resource
*/
export declare class ModelLoader {
readonly loader: ResourceLoader;
static findRealTexturePath(model: BlockModel.Resolved, variantKey: string): string | undefined;
/**
* All required texture raw resources
*/
readonly textures: Record<string, Resource>;
/**
* All the resolved model
*/
readonly models: Record<string, BlockModel.Resolved>;
/**
* @param loader The resource loader
*/
constructor(loader: ResourceLoader);
/**
* Load a model by search its parent. It will throw an error if the model is not found.
*/
loadModel(modelPath: string, folder?: string): Promise<BlockModel.Resolved>;
}
//# sourceMappingURL=modelLoader.d.ts.map