diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2022-08-27 20:31:21 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-27 20:31:21 -0500 |
| commit | b8228a036016fa58cab4b00a2e62298df299d41f (patch) | |
| tree | 37ab80c054d2c0832d0ebf61cbbefd9e368260a8 /codegen/lib/extract.py | |
| parent | 029ae0e567ccdc631a358755eba43b742811ff05 (diff) | |
| download | azalea-drasl-b8228a036016fa58cab4b00a2e62298df299d41f.tar.xz | |
Azalea registry (#20)
* make azalea-registry crate
* add trait feature to az-block
* registr
* registry macro
* impl Display for registry things
* registries
Diffstat (limited to 'codegen/lib/extract.py')
| -rw-r--r-- | codegen/lib/extract.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/codegen/lib/extract.py b/codegen/lib/extract.py index 070aba14..75e4908b 100644 --- a/codegen/lib/extract.py +++ b/codegen/lib/extract.py @@ -24,6 +24,12 @@ def get_block_states_report(version_id: str): return json.load(f) +def get_registries_report(version_id: str): + generate_data_from_server_jar(version_id) + with open(get_dir_location(f'downloads/generated-{version_id}/reports/registries.json'), 'r') as f: + return json.load(f) + + def get_block_states_burger(version_id: str): burger_data = get_burger_data_for_version(version_id) return burger_data[0]['blocks']['block'] |
