1 | import { BlockModel, Resource } from "@xmcl/resourcepack";
|
2 | import { ResourceManager } from "./index";
|
3 |
|
4 |
|
5 |
|
6 | export declare class ModelLoader {
|
7 | readonly manager: ResourceManager;
|
8 | static findRealTexturePath(model: BlockModel.Resolved, variantKey: string): string | undefined;
|
9 | |
10 |
|
11 |
|
12 | readonly textures: Record<string, Resource>;
|
13 | |
14 |
|
15 |
|
16 | readonly models: Record<string, BlockModel.Resolved>;
|
17 | |
18 |
|
19 |
|
20 | constructor(manager: ResourceManager);
|
21 | /**
|
22 | * Load a model by search its parent. It will throw an error if the model is not found.
|
23 | */
|
24 | loadModel(modelPath: string): Promise<BlockModel.Resolved>;
|
25 | }
|