1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
use std::io;
mod asset_pack;
mod provider;
mod resolve;
mod resource;
pub use asset_pack::AssetPack;
pub use provider::{
EnumerateResources, FileSystemResourceProvider, LoadResource, ResourceProvider,
};
pub use resolve::ModelResolver;
pub use resource::{
ModelIdentifier, ResourceCategory, ResourceIdentifier, ResourceKind, ResourcePath,
MINECRAFT_NAMESPACE,
};
#[derive(Debug, thiserror::Error)]
#[allow(missing_docs)]
pub enum Error {
#[error(transparent)]
IoError(#[from] io::Error),
#[error(transparent)]
ParseError(#[from] serde_json::Error),
}
pub type Result<T, E = Error> = std::result::Result<T, E>;