-
-
Notifications
You must be signed in to change notification settings - Fork 68
Expand file tree
/
Copy pathmod.mcdoc
More file actions
57 lines (49 loc) · 1.18 KB
/
mod.mcdoc
File metadata and controls
57 lines (49 loc) · 1.18 KB
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
49
50
51
52
53
54
55
56
57
use ::java::util::text::Text
dispatch minecraft:storage[gm4:log] to struct Gm4Log {
versions?: [LogVersion],
traverse_versions?: [LogVersion],
log?: struct {
require_id?: string
},
outdated_list?: [LogEntry],
queue?: [LogEntry],
temp?: Text,
}
struct LogVersion {
id: string,
module: string,
version: string,
from?: string,
}
struct LogEntry {
type: ("text" | "install" | "outdated" | "missing" | "version_conflict"),
...gm4:log_entry[[type]],
}
dispatch gm4:log_entry[text] to struct {
/// The text component message to display.
message: Text,
}
dispatch gm4:log_entry[install] to struct {
/// The name of the module that was just installed.
module: string,
}
dispatch gm4:log_entry[outdated] to struct {
module: string,
download: #[url] string,
render: Text,
}
dispatch gm4:log_entry[missing] to struct MissingLog {
/// The name of the module.
module: string,
/// The ID of the module.
id: string,
/// The name of the dependency.
require: string,
/// The ID of the dependency.
require_id: string,
}
dispatch gm4:log_entry[version_conflict] to struct {
...MissingLog,
/// The required version of the dependency.
require_ver: string,
}